473,386 Members | 1,817 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,386 software developers and data experts.

Backward/forward through history

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

--
Cross-platform applications: http://wyoguide.sf.net/index.php
Feb 15 '07 #1
6 1525
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.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 15 '07 #2
Randy Webb wrote on 15 feb 2007 in comp.lang.javascript:
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.
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.
>Yet when I change a cookie and use history.back() what value does the
cookie have afterwards?

alert it and see.
Shall we hear the result, Otto?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 15 '07 #3
Evertjan. said the following on 2/15/2007 4:23 AM:
Randy Webb wrote on 15 feb 2007 in comp.lang.javascript:
>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.

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.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 15 '07 #4
Evertjan. wrote:
Randy Webb wrote on 15 feb 2007 in comp.lang.javascript:
>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.

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)?
>>Yet when I change a cookie and use history.back() what value does the
cookie have afterwards?
alert it and see.

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
--
Cross-platform applications:
http://wyoguide.sf.net/index.php?page=projectlist.php
Feb 15 '07 #5
Otto Wyss said the following on 2/15/2007 3:53 PM:
Evertjan. wrote:
>Randy Webb wrote on 15 feb 2007 in comp.lang.javascript:
>>>Yet when I change a cookie and use history.back() what value does
the cookie have afterwards?
alert it and see.

Shall we hear the result, Otto?
Sure, as soon as I've figured out how to code accessing cookies. Any
nice sample code?
<URL: http://jibbering.com/faq/index.html#FAQ4_4>

While the question there is how to test if a browser accepts cookies or
not, the URL References are a good start on learning cookies.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 15 '07 #6
Otto Wyss wrote:
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
--
Cross-platform applications:
http://wyoguide.sf.net/index.php?page=projectlist.php
Feb 20 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: pmelanso | last post by:
hello, I want to create back and forward buttons on my web page. I didn't have a problem with that... the thing I am having trouble with is I woudl like to display "disabled" images when there if...
4
by: Mick | last post by:
Hi, Is there a way to simulate the IE backward button behaviour with Asp.Net ? thks for help.
1
by: Terry Olsen | last post by:
Is there any way to disable the client browser "Back" and "Forward" buttons while on my site? Or how would I go about knowing that a page hit is caused by a back/forward navigation? I have...
1
by: Jimmy | last post by:
I want to hook the "back" event or "forward" event from a browser page. How can I trigger these events to my asp.net page? ch Jimmy
4
by: PJ6 | last post by:
After logging out of my test site I would like to be able to not allow the user to navigate back to previous pages. It's not super-important because if they try to do anything the login state has...
2
by: Pucca | last post by:
Are there any built-in functions, contols or sample code avaiable to implement this? I'm coding a form with treeview on left and listview on right of a container control. It's like the Active...
4
by: John | last post by:
Hi everybody, for my web-application (it must currently work only under IE6) I have a servlet that intercepts user's HTTP GET requests for a typical search result page, which contains a paging...
3
dotneto
by: dotneto | last post by:
Hi, There is a strange behaviour with ie7 and browsing history. In a page (aspx), the user can download a file. If he navigates back from that page, the page is lost(from browsing history), an...
2
by: samueltilden | last post by:
I started a new job and the version of Visual Studio 2005 that I am now using does not have the Navigate Backward Button nor the Navigate Forward Button in the Standard Toolbar, and they are not...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.