PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: September 6, 2006 6:28 PM
To: jQuery Discussion.
Subject: Re: [jQuery] AJAX loadIfModified() problems
I'm building a web page that periodically polls the server to display
the status (OK, busy, loading, etc.)
jQuery doesn't actually check the returned contents
No, I'm not doing that ... It appears that I ought to, though! :-)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: September 6, 2006 6:29 PM
To: jQuery Discussion.
Subject: Re: [jQuery] AJAX loadIfModified() problems
David,
are you loading the if-modified
Would this suggest that I should modify my JSP to add this header and
update the value when the page response has been updated?
Yes, that is the proper (HTTP-spec) way of doing that - and what
jQuery currently supports. Although, it's certainly a possibility to
add in the content-checking
Discussion.
Subject: Re: [jQuery] AJAX loadIfModified() problems
Would this suggest that I should modify my JSP to add this header and
update the value when the page response has been updated?
Yes, that is the proper (HTTP-spec) way of doing that - and what
jQuery currently supports. Although
I seem to be having some challenges with the loadIfModified(url)
function. Is the remote HTML injected if anything is returned by the
URL, or if only what is returned that the previous time the URL was
queried?
I'm building a web page that periodically polls the server to display
the status (OK,
I'm building a web page that periodically polls the server to display
the status (OK, busy, loading, etc.)
jQuery doesn't actually check the returned contents from the server,
instead it sends the If-Modified-Since header to the server and checks
the Last-Modified response header coming back.
David,
are you loading the if-modified-since header from your target script?
? header(if-modified-since ... something like that
WIll
I seem to be having some challenges with the loadIfModified(url)
function. Is the remote HTML injected if anything is returned by the
URL, or if only what is