470,594 Members | 1,364 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,594 developers. It's quick & easy.

Jump to correct layer after location.reload()

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 (iv**@tda.no)
Jul 23 '05 #1
1 1797
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

"Iver Erling Årva" <iv**@tda.no> skrev i melding
news:40********@news.broadpark.no...
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 (iv**@tda.no)

Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Margaret MacDonald | last post: by
1 post views Thread by Mike Gifford | last post: by
2 posts views Thread by Ante Perkovic | last post: by
19 posts views Thread by Darren | last post: by
16 posts views Thread by darrel | last post: by
9 posts views Thread by permanent.tourist | last post: by
2 posts views Thread by jaydeep.ahuja | last post: by
reply views Thread by jaydeep.ahuja | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.