Huh? You said you need it to not cache? --Klaus
On 14 Okt., 12:20, "Johan Havenga" <[EMAIL PROTECTED]> wrote: > Thank you Klaus > > That worked like a charm. It is sad that I have to lose the cache on the > Tabs, but so it goes. > > Regards > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > > Behalf Of Klaus Hartl > Sent: 2008-10-14 11:39 > To: jQuery UI > Subject: [jquery-ui] Re: Reload of Tabs > > I think you need to set cache to false for ajax requests. You can > either do that in the tabs options or globally for all requests: > > // just for tabs > $(function() { > $('#staff_tabs > ul').tabs({ > selected: <?php echo $tab; ?>, > ajaxOptions: { cache: false } > }); > }); > > // globally > $.ajaxSetup({ cache: false }); > > $(function() { > $('#staff_tabs > ul').tabs({ > selected: <?php echo $tab; ?> > }); > }); > > Note that you don't need the call to the select method as you can > specify the selected tab right away. > > http://docs.jquery.com/UI/Tabs/tabs#optionshttp://docs.jquery.com/Ajax/jQuery.ajaxSetup#options > > (Seeing this together I come to think, that I'll change the tabs > option name to ajaxSetup, but for the 1.6 release.) > > --Klaus > > On 13 Okt., 10:01, Joe <[EMAIL PROTECTED]> wrote: > > Hi There > > > I employ the JQuery UI Tabs interface in my new project. I use the > > "link tabs" option where the info for each team is in a different page > > and loaded separately as there is a lot of SQL queries flying around. > > I have an issue with the reload of data within the tabs in IE. in > > Firefox everything is fine, but if I change something in IE and return > > tot eh tab, the old information still shows. I tried the "reload tab" > > function but either failed to employ this correctly, or is not working > > but either way, I had no luck thus far. > > > Please help! > > > My code looks something like this: > > > I include JQuery and the UI scripts > > > In the head.. > > > <script type="text/javascript"> > > $(document).ready(function(){ > > var $tabs = $("#staff_tabs > ul").tabs(); > > $tabs.tabs('select',<?php echo $tab; ?>); > > }); > > </script> > > > and in the body... > > > <div id="staff_tabs" class="clear"> > > <ul> > > <li><a href="./staff_tabs/summary.php" > > title="Summary">span>Summary</span></a></li> > > <li><a href="./staff_tabs/event_log.php" title="Event > > Log"><span>Event Log</span></a></li> > > <li><a href="./staff_tabs/details.php" > > title="General"><span>Details</span></a></li> > > </ul> > > </div> > > > I would appreciate any help with this problem. > > PS> IE must die... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
