Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS - Frame/Table replacements

Status
Not open for further replies.

PaulSc

MIS
Joined
Aug 21, 2000
Messages
148
Location
GB
Hello,
I have a small offline html based system running with 3 x frames (topFrame, leftFrame & mainFrame).

The leftFrame contains various dropdown selection lists, which when one of the options is selected it populates the mainFrame via JavaScript (parent.main.location.href) code which in turn displayed various html pages.

This works fine in Frames, but I've been trying to translate this into CSS DIVs and would appreciate a bit of help please.....

The DIV layouts look fine, however I'm having a bit of trouble replicating the parent.main.location.href parameters?? Can Javascript reference Div sections in the same way or do I have to use alternative methods..

Any pointers as to good refernce guides for this sort of thing also appreciated.

Thanks in advance

PaulSc.

 
if you're trying to covert from frames to divs it sounds like you need to use the

getElementByID('some id').innerText = 'whatever'

where 'some id' is the unique id of the div that holds the main content of the page.

 
Looks like problem here is how to get 'whatever' from server without reloading entire page.
 
or if you are needing to do more than simply change text, you can simply put each "page" in it's own layer (div) and change visibility with your buttons...

[conehead]
 
If you were to do an onChange on the dropdown list and call a function that 'selectively' changes the <div> content upon dropdown value it would NOT reload the entire page
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top