Jump to correct layer after location.reload()

I

Iver Erling Årva

Hi!

I wonder if anyone knows how to do this. I use layers in one of my html
pages to simulate tabs like tabs in windows application. I have one layer
per "page/tab" and call them Layer1,Layer2,Layer3 etc. and use a
visible/invisible style setting to display the right one according to that
tab the user clicks. On one of the layers the user can add items, and to
update the html-document and make the new item visible I do a
location.reload(). My problem is that every time I do that the document goes
back to the initial state where the first tab is displayed.

Can anyone tell me how I can do a document.reload() (or similar) and then
jump to the correct tab by activating the correct layer?

Thanks for any help on this!
Brgds IVer Erling Årva, Oslo ([email protected])
 
I

Iver Erling Årva

I found a solution to this myself. By replacing the location.reload and
using the location= instead and adding a layer parameter as part of the
location url and picking this up in the body onLoad event and calling a
function to select the correct layer I was able to get around this.

IVer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top