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?
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?
>
inal Message-
From: [EMAIL 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.)
j
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-mod
> 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 ca
To: jQuery 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