473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Navigation panel won't remember its position

I have a test site setup at:

http://ridgedale.powweb.com/THS/sbx_index.php

and I am having trouble trying to resolve an issue relating to the scrolling navigation panel. When the user scrolls down the list and clicks on a link the new page is reloaded but the position in the navigation panel is forgotten and the content jumps to the top. :(

Is there any way to resolve this? Any assistance would be appreciated.
Oct 14 '09 #1
9 2363
Dormilich
8,658 Expert Mod 8TB
@ridgedale
404
@ridgedale
either it's a new page or it's reloaded...

in HTML there is no way to tell the previous screen position (it's a browser courtesy) and new pages are always opened at the top (unless you tell it to jump to an anchor)
Oct 14 '09 #2
Thanks for your reply, Dormlich. Apologies, I managed to post the link incorrectly. Hopefully it will make clearer what I mean?

http://ridgedale.powweb.com/THS/sbx_intro.php

Thanks again
Oct 14 '09 #3
Dormilich
8,658 Expert Mod 8TB
it makes the "problem" visible, still the explanation remains.
Oct 14 '09 #4
acoder
16,027 Expert Mod 8TB
Why don't you just load the content instead of the whole page when you click a link?
Oct 14 '09 #5
Thanks for your feedback, guys. acoder, your suggestion sounds like it might work. Can you give me a pointer as to how I would do this?

Thanks again.
Oct 14 '09 #6
acoder
16,027 Expert Mod 8TB
You can either use (i)frames (easy, but ugly), or Ajax (a bit harder, but more elegant).
Oct 14 '09 #7
I would like to steer clear of iframes, so how do I go about achieving this with Ajax?

Thanks for your patience.
Oct 14 '09 #8
Just to update everyone here I received a javascript in the following post at the webmasterworld javascript forum that worked a treat:

http://www.webmasterworld.com/javascript/4006777.htm

Thanks again.
Oct 14 '09 #9
acoder
16,027 Expert Mod 8TB
OK, I did think of suggesting just that, but I thought it'd be much better to avoid that and just load only the content required when that's the only difference from page to page.
Oct 24 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Bryan | last post by:
I've been trying to figure out how to do this for the past 2 days and am finally tossing in the towel. No matter what I do, I just can't seem to get it to work and haven't been able to find any...
3
by: Fabrizio | last post by:
Hi, There is any chance to insert a control like a text box in a panel choosing the absolute position? When I try to insert a label , the panel positions the control on a locked position. Thanks...
1
by: Tia Carr | last post by:
When I try to place a child control on top of a panel control, the mouse pointer remains as a pointer instead of changing to a cross. I tried both the ShowGrid on/off, doesn't make a difference.....
3
by: Ed Chiu | last post by:
Hi, I have a relative lengthy .aspx page. There are buttons, datalists datagrids everywhere. When a user scrolls down to the middle of bottom of the page and click on a button, a postback...
2
by: Raghu Raman | last post by:
Hi, am a biginner in .net designing.Does the panel control is enough to act as a container .Because if , i design my controls in textboxes rows& cols , i heared that the aclignment won't change...
3
by: Jannette | last post by:
I've got this to finally work in IE (its only taken me 2 days solid), but now mozilla isn't displaying the text on the same line as the image. I'm a newby at CSS, and I've think I've worked on trying...
4
by: tshad | last post by:
I am trying to hide and show certain parts of my code (which I have no problem doing with DW). In VS 2003, it won't let you use <div runat="server"to section of parts of my code in a table. This...
3
by: ShadowLocke | last post by:
This is a weird one. I have a page that has two Panels on it with BorderStyle set to double. In design mode everything looks as it should. When I start the page up or move it to a production server,...
2
tharden3
by: tharden3 | last post by:
I have a question for you guys, I'm designing a website. Before I go any further, I'd like to get my navigation bars on the left side up and running. The site is themed to a bumblebee 'black and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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
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...
0
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,...
0
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...

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.