Ok, figured it out. Just had to throw a header to force IE to not
cache its requests:
Cache-Control: no-cache, max-age=0
On 9/8/06, <[EMAIL PROTECTED]> wrote:
> I have a very simple test JQuery Ajax demo that for some reason fails
> in IE (all versions) after the first click. The first click works, but
> after that it sends out no additional XMLHttpRequests. Something leads
> me to believe it's something other than a jQuery issue, but I've been
> unable to see what could possibly be wrong. It's as if IE just caches
> the first XHR and never moves on.
>
> Expected results: click the link containing a person's name and that
> fires off $.get() to retrieve a new name in plain text from a php
> script. The link innerHTML will then be updated with the new name.
>
> Observed results: All browsers work fine but Internet Explorer
> (v5.x/6/7), which works only for the first click, then fails.
>
> Here is the code I'm using (assume a standard XHTML page containing
> one link element, id="name"):
>
> $(document).ready(init);
>
> function init(){
> $('#name').bind('click', getNewName, false);
> }
>
> function getNewName(e)
> {
> $('#name').html('<img src="loading.gif" alt="Searching..." />');
>
> $.get(
> 'get/?name',
> function(txt){
> $('#name').html(txt);
> }
> );
>
> return false;
> }
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/