[jQuery] AJAX loadIfModified() problems

2006-09-06 Thread Lewis, David
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,

Re: [jQuery] AJAX loadIfModified() problems

2006-09-06 Thread John Resig
> 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.

Re: [jQuery] AJAX loadIfModified() problems

2006-09-06 Thread Will Jessup
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? >

Re: [jQuery] AJAX loadIfModified() problems

2006-09-07 Thread Lewis, David
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

Re: [jQuery] AJAX loadIfModified() problems

2006-09-07 Thread Lewis, David
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

Re: [jQuery] AJAX loadIfModified() problems

2006-09-07 Thread John Resig
> 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

Re: [jQuery] AJAX loadIfModified() problems

2006-09-07 Thread Lewis, David
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