Loading a Page Within a Page

Reply

Join Date: Oct 2006
Posts: 8
Reputation: Juggler is an unknown quantity at this point 
Solved Threads: 0
Juggler Juggler is offline Offline
Newbie Poster

Loading a Page Within a Page

 
0
  #1
May 9th, 2007
Without using frames, is it possible to load a html page within a certain area of another html page?

To hopefully make my question a little clearer, I am trying to write a website where I could have the site's logo an navigation system be saved on a certain file, and have all of the other pages on the site load that file so if I want to make a change, I won't need to rewrite the code on every page on the website. I know this is possible with frames, but I'm not really a fan of them and was wondering if there is any other way to do this.

Thank you!
Last edited by Juggler; May 9th, 2007 at 8:48 pm. Reason: clarification of question
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,273
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 543
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Loading a Page Within a Page

 
-1
  #2
May 9th, 2007
you can yes

e.g if you have a static page holding links in the left frame and you want the right pane to go to whatever link they click in the left pane then you can target one frame from another with something like:

HTML and CSS Syntax (Toggle Plain Text)
  1.  
  2. <A href="page.html" target="contentframe">Link Description</A>

this only works if you give your frames proper names
Last edited by jbennet; May 9th, 2007 at 8:48 pm.
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 1,091
Reputation: MattEvans is a jewel in the rough MattEvans is a jewel in the rough MattEvans is a jewel in the rough 
Solved Threads: 63
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Veteran Poster

Re: Loading a Page Within a Page

 
1
  #3
May 10th, 2007
- you could use iframes (inline frames) but i wouldn't suggest it, this situation pertains better to frames if its a choice between the two;

- you can get a certain amount of 'global control' using sitewide stylesheets, but often not enough;

- beyond that, using some PHP, Perl, ASP, JSP, XSLT, etc at the server to glue parts of pages together works, with a fair degree of control;

- avoid using client-side Javascript or XSLT to do this, it doesn't make good sense;

- alternatively, if you don't have a need or desire for pages to be created everytime they are accessed, use any kind of programming / transformation language or other technology to prepare your pages from mutliple sources offline.
Plato forgot the nullahedron..
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 20
Reputation: smalldog is an unknown quantity at this point 
Solved Threads: 1
smalldog smalldog is offline Offline
Newbie Poster

Re: Loading a Page Within a Page

 
-1
  #4
May 14th, 2007
That is not possible, you must use server side script includes Juggler.
Join a forum for webmasters and developers
HTML Forum
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,273
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 543
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Loading a Page Within a Page

 
0
  #5
May 14th, 2007
php?
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum


Views: 5255 | Replies: 4
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC