aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Javascript Frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript Frames" Watch "Javascript Frames" New topic
Author

Javascript Frames

Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
All,

How to create javascript frames and how to integrate html pages into frames?
Example:
Please go to :http://www.integrativenutrition.com/graduates/ckowarick.aspx

On above website if you go to any page, they don't change top header and left side of the page. I want to do similar thing, i want web page header and left navigation bar should not repeat or chage if you do to different pages of website. Someone told me that using javascript you can create frames and integrate html pages. But how? Any opensource code or tutorials on that?

Thank you,
angela
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

On above website if you go to any page, they don't change top header and left side of the page.


All they're doing on that site is using the same header and sidebar for each page so that it does not appear to change.

There are number of way to achieve what you are asking about though. The easiest and most common is to use an iframe for the changing content.

Another, much more complicated way, would be to use Ajax to fetch new content from the back-end and replace the changing content of the page.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
Originally posted by Bear Bibeault:

There are number of way to achieve what you are asking about though. The easiest and most common is to use an iframe for the changing content.


Do i have use javascript for iframe or it is seperate object and we can call javascript to change pages?
Thank you,
Angela
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

or it is seperate object and we can call javascript to change pages


Yes.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

P.S. the iframe can also be referenced in the target attribute of forms and links.
Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
Originally posted by Bear Bibeault:
P.S. the iframe can also be referenced in the target attribute of forms and links.


Any example? Also Will i achieve which i stated using above?

Thank you,
angela
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript Frames