473,670 Members | 2,538 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,L ayer3 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 1896
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,L ayer3 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
5640
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 header('Location: ...) jump to page A on success or falls through to the jump to page B. This is the code: if ( mysql_query( 'LOCK TABLES tableX WRITE', $link ) ) { mysql_query( $q, $link ) ; // store the record
1
40035
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 content as it has been filled out be the user.
2
2247
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
31045
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(). The problem is that after the reload, it brings you right to the top of the page. When I click 'refresh" on the original page, it brings me back to the original viewing position. Is there a way to duplicate this in from the popup window. Also,...
16
9910
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
5436
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 answer or solution for this? I'm trying to do this: top.frames.location.reload(); Thanks Mark Howells www.permanenttourist.ch
2
2490
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
981
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 some other layer which i dont wish to get reloaded
0
8384
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8591
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8659
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7412
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5683
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4208
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4388
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2799
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 we have to send another system
2
1791
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.