Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reload and Refresh on BACK.

Status
Not open for further replies.

neiljabba

IS-IT--Management
May 22, 2003
86
GB
I am using some java drop down menus that when the back button is used do not function as they did on the orginal loading of the page. How do I set this up so that they can.

Ideally reloading the menu completely as each page is opened/visited would be good forcing the user to rechoose from the refershed menu if they wish to navigate within that section.

Many thanks in advance.
 
Hi,

Did you try

Code:
<BODY onLoad="initMenu()">

Where initMenu() would be a ... well menu init function.

Good Luck


Jakob
 
I just want to point out that (from a user perspective) having the page automagically reload when the back button is used would drive the user toward negative happiness.

If the user wants to use the back button, let them. If you want to provide your own navigation system (and they want to use that) fine... but don't force the user to adhere to your (strict) rules.

If the problem is with the Java menu system (and I assume you actually mean Java and not Javascript - a completely different beast) then I suggest you get the Java developers to fix it (or find one that works the way you want it to).

Side question... if I don't have Java enabled, do you provide a means of letting the user navigate through your site?

Jeff
 
Thank you very much gentlemen for your help and opinion.

One more question for you Jakob if yo uwouldnt mind, but if I am calling the script from a source file rather than including the function in the head tag is there a similar option for this kind of method i.e. onLoad = THE SCRIPT I NEED.

Many thanks again

Neil
 

You would still use the syntax that DKDude has posted:

Code:
<body onload="initMenu();">

Just make sure your source JS file has a function called "initMenu" in it.

Hope this helps,
Dan
 
Cheers folks

I actually managed to use some skill but mostly lucky guessing and adapt another script to ensure the menu does what I need.

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top