Backward/forward through history

O

Otto Wyss

I guess moving backward/forward through history is done only in the
browser without communicating with the server. Is that right?

Yet when I change a cookie and use history.back() what value does the
cookie have afterwards?

O. Wyss
 
R

Randy Webb

Otto Wyss said the following on 2/14/2007 10:19 PM:
I guess moving backward/forward through history is done only in the
browser without communicating with the server. Is that right?
Yes.

Yet when I change a cookie and use history.back() what value does the
cookie have afterwards?

alert it and see.
 
E

Evertjan.

Randy Webb wrote on 15 feb 2007 in comp.lang.javascript:
Otto Wyss said the following on 2/14/2007 10:19 PM:

Yes.

Not in the sense that if the page is set not to reuse the cashed version,
or if the cashe is emptied,
the page is reloaded from the server.
alert it and see.

Shall we hear the result, Otto?
 
R

Randy Webb

Evertjan. said the following on 2/15/2007 4:23 AM:
Randy Webb wrote on 15 feb 2007 in comp.lang.javascript:


Not in the sense that if the page is set not to reuse the cashed version,

And assuming the browser honors that header.
or if the cashe is emptied,

Now that is true.
 
O

Otto Wyss

Evertjan. said:
Randy Webb wrote on 15 feb 2007 in comp.lang.javascript:


Not in the sense that if the page is set not to reuse the cashed version,
or if the cashe is emptied,
the page is reloaded from the server.
or unless I use reload(true)?
Shall we hear the result, Otto?
Sure, as soon as I've figured out how to code accessing cookies. Any
nice sample code?

O. Wyss
 
O

Otto Wyss

Otto said:
Sure, as soon as I've figured out how to code accessing cookies. Any
nice sample code?
Okay here is what I've found out. The cookie isn't changed as long as no
code to change the cookie is used. E.g. if a cookie is set in an
"onchange" handler the value stays the same when moving through the
history. But if the cookie is set in the body its value is changed.

O. Wyss
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top