473,508 Members | 2,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1887
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
5608
by: Margaret MacDonald | last post by:
I'm seeing a problem that has me flummoxed. The only thing I can think of is that I'm violating some rule I don't know about. I have some code that does some processing and then does a...
1
40006
by: Mike Gifford | last post by:
Hello, I'm right now using window.location.reload() to refresh the browser. It behaves as I would want in Mozilla/Netscape, but not in IE. I want to refresh a form, but keep the cached...
2
2241
by: Ante Perkovic | last post by:
Hi, "top.someFrameName.location.reload();" doesn't work for Netscape 7 (it works for Netscape 4.75!). Any idea how to fix this Thanks in advance Ante
19
31000
by: Darren | last post by:
I have a page that opens a popup window and within the window, some databse info is submitted and the window closes. It then refreshes the original window using window.opener.location.reload(). ...
16
9873
by: darrel | last post by:
I have an anchor on my page: <a name="monkey"></a> I can easily go to this via a redirect, but is there a way to jump to this on postback? -Darrel
9
5417
by: permanent.tourist | last post by:
I'm having a hell of a job getting this to work in Safari: the only thing I can think of is that one can't use reload() across to another frame for security reasons. Does anyone have a concrete...
2
2483
by: jaydeep.ahuja | last post by:
Hi all I wish to reload a layer in xml. can any body tell me how can this be done
0
971
by: jaydeep.ahuja | last post by:
Hi all, i wish to reload a layer, how can this be done .....till now i have been reloading the whole document to change the view....but now i wish to reload only a layer as i have added a video to...
0
7227
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7127
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7331
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5633
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5056
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1564
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.