Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > ? Content Entered in Forms Sometimes Duplicated and Sometimes Not ?

Reply
Thread Tools

? Content Entered in Forms Sometimes Duplicated and Sometimes Not ?

 
 
Nehmo Sergheyev
Guest
Posts: n/a
 
      05-09-2004
In IE 6 when you hit Ctrl + N, you get a new window with the same page
loaded. But if there are forms on the pages, you may or may not get what
you've already entered in the forms duplicated in the new window.

For example, on http://www.smithliving.com/home.html (fill in and submit
the form for a free pad of paper, I think), when I hit Ctrl + N, what I
entered in the forms gets duplicated on the new page.

But while posting in Google Groups, when I hit Ctrl + N, only the
unaltered original posting page gets duplicated in the new window.

What makes the entered content of one kind of form duplicatable but
another not?



(This is not a *problem*; I'm simply curious.)


--
*********************
* Nehmo Sergheyev *
*********************


 
Reply With Quote
 
 
 
 
Andrew Urquhart
Guest
Posts: n/a
 
      05-09-2004
*Nehmo Sergheyev* wrote:
> In IE 6 when you hit Ctrl + N, you get a new window with the same page
> loaded. But if there are forms on the pages, you may or may not get
> what you've already entered in the forms duplicated in the new window.
>
> For example, on http://www.smithliving.com/home.html (fill in and
> submit the form for a free pad of paper, I think), when I hit Ctrl +
> N, what I entered in the forms gets duplicated on the new page.
>
> But while posting in Google Groups, when I hit Ctrl + N, only the
> unaltered original posting page gets duplicated in the new window.
>
> What makes the entered content of one kind of form duplicatable but
> another not?


To hesitate an educated guess, I suspect that IE makes a decision based
on the freshness information of the webpage.

www.smithliving.com/home.html returns these 2 headers amongst others:
ETag: "e0aa28f1efc31:b49"
Last-Modified: Tue, 10 Feb 2004 16:15:00 GMT

Upon Control-N IE either assumes that the page has not changed since the
last request a few moments ago or makes a HTTP request and gets a 304
from the server, it then duplicates the pages 'as is' form data and all.

Google Groups pages however do not send such freshness data, but request
that clients not cache the pages at all with this header:
Cache-control: private

So upon Control-N IE honours that instructions and requests a fresh copy
of the page from the server, which doesn't contain your form
information.
--
Andrew Urquhart
- FAQ: www.html-faq.com
- Archive: www.google.com/groups?q=alt.html
- My reply address is invalid, use: www.andrewu.co.uk/contact/


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
strange problem with asp.net web app calling web service. sometimes 403 sometimes not gkellymail@gmail.com ASP .Net 1 11-29-2006 07:11 AM
forms authentication -- expired forms cookie vs. not provided forms cookie Eric ASP .Net Security 2 01-27-2006 10:09 PM
JavaScript sometimes working ok and sometimes not Kamyk Javascript 2 05-08-2005 01:28 PM
Date entered from textbox becomes null (1/1/1900) when entered into SQL table. TN Bella ASP .Net 1 07-01-2004 02:53 PM
::std sometimes needed, sometimes not Marcin Vorbrodt C++ 24 09-17-2003 03:01 PM



Advertisments