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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

history.back

Status
Not open for further replies.

martynj

Programmer
Oct 19, 2001
11
GB
I run asp/webclass apps under IIS.

I have an app in which the user wishes to navigate back so we issue history.back using vbscript.

Why does this cause the browser to re-evaluate the url in history....What I mean is history.back calls the asp page again on the server using the url and any query string parameters...is this how it should work....IE seems to overwrite any url in history if it finds an identical one..

Can anyone explain why it goes back to the server...


 
asp runs from the server so when calling the page again, it would force it to come from the server. sounds like you're wanting the information to remain the same as it was when the client left. I believe javascript also has a history.back function, that would run client side so the user would see the "results" of the page as they had left it as it wouldn't re-query the server.
hth
mb
:)
 
It shouldn't re-evaluate the URL...it should go back to the cached page. You could try a little javascript to do it and see what it does with that...

<A href=&quot;JAVASCRIPT:history.go(-1)&quot;>&lt;&lt; Go Back</A>

or

<A href=&quot;JAVASCRIPT:history.back(-1)&quot;>&lt;&lt; Go Back</A>


Hope this works for you... -Ovatvvon :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top