jQuery: The Write Less, Do More JavaScript Library

jQuery UI Ajax tabs: content not refreshing in IE6 - cache problem?

View: New views
4 Messages — Rating Filter:   Alert me  

jQuery UI Ajax tabs: content not refreshing in IE6 - cache problem?

by kyleduncan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I am using the Ajax method to load tabs using jQueryUI's tab
functionality. these work fine in all browsers except IE6, where once
an Ajax tab has been loaded (the tab links to a Django .html template
file) it WILL NOT reload unless you clear out IE6's cache totally.
this is particularly problematic for me because the tabs are loading
different parts of our site's messaging system, so it makes it
impossible to see new messages when they arrive.

I'm loading tabs using the simple $(selector).tabs(); code, is there
something else i can add to force IE6 to get a new version of the
content every time it's clicked on?

thanks for any help anybody can give!


Re: jQuery UI Ajax tabs: content not refreshing in IE6 - cache problem?

by James-279 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


There's an option to set cache to false for tabs.
$('.selector').tabs({ cache: false });

Also, set your cache in AJAX options to false so the AJAX requests are
not cached.
http://docs.jquery.com/Ajax/jQuery.ajaxSetup

On Jul 2, 3:23 am, kyleduncan <kyledun...@...> wrote:

> I am using the Ajax method to load tabs using jQueryUI's tab
> functionality. these work fine in all browsers except IE6, where once
> an Ajax tab has been loaded (the tab links to a Django .html template
> file) it WILL NOT reload unless you clear out IE6's cache totally.
> this is particularly problematic for me because the tabs are loading
> different parts of our site's messaging system, so it makes it
> impossible to see new messages when they arrive.
>
> I'm loading tabs using the simple $(selector).tabs(); code, is there
> something else i can add to force IE6 to get a new version of the
> content every time it's clicked on?
>
> thanks for any help anybody can give!

Re: jQuery UI Ajax tabs: content not refreshing in IE6 - cache problem?

by kyleduncan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thank you! Worked via the global ajax settings.

On Jul 3, 3:06 am, James <james.gp....@...> wrote:

> There's an option to set cache to false for tabs.
> $('.selector').tabs({ cache: false });
>
> Also, set your cache in AJAX options to false so the AJAX requests are
> not cached.http://docs.jquery.com/Ajax/jQuery.ajaxSetup
>
> On Jul 2, 3:23 am, kyleduncan <kyledun...@...> wrote:
>
> > I am using the Ajax method to load tabs using jQueryUI's tab
> > functionality. these work fine in all browsers except IE6, where once
> > an Ajax tab has been loaded (the tab links to a Django .html template
> > file) it WILL NOT reload unless you clear out IE6's cache totally.
> > this is particularly problematic for me because the tabs are loading
> > different parts of our site's messaging system, so it makes it
> > impossible to see new messages when they arrive.
>
> > I'm loading tabs using the simple $(selector).tabs(); code, is there
> > something else i can add to force IE6 to get a new version of the
> > content every time it's clicked on?
>
> > thanks for any help anybody can give!

Re: jQuery UI Ajax tabs: content not refreshing in IE6 - cache problem?

by Gilcpd-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hey Guys
I'm sorry to bother, but I have the same problem, and I've been trying
to get around it.
I added the option 'cache:false' on the tabs script:
$(function() {
 $('#ajaxtab').tabs({
    remote: true,
    cache: false
  });
})
But it did not work...
I also tryed to add:
$.ajaxSetup({
  global: false,
  cache:false
});
Also nothing...
On my ajaxRequest I'm using POST as method:
sendRequest: function (postVars, url) {
        request.open("POST", "ajaxcomments/insert.php", true);
                request.onreadystatechange = ajaxRequest.response;
                request.setRequestHeader("Content-Type", "application/x-www-form-
urlencoded");
                request.send(postVars);
    }
Please can you help me out?! I'm really desparate now. I mean
unfortunatelly most users use IE and I have to make it work :S

Thanks in Advance.
Gill