Rick - set cache="false" in your ajax call. $.ajax({ Cache: false, type: "POST", etc.
IE caches everything by default unless you tell it not to. Also you can do this once and all your ajax calls will not cache: $.ajaxSetup({ cache: false }); Thereafter you won't have to have the cache: false parameter set for each ajax call. -- Josh -----Original Message----- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Rick Faircloth Sent: Thursday, January 08, 2009 2:05 PM To: jquery-en@googlegroups.com Subject: [jQuery] How to force processing of ColdFusion code when using .load How can I force the processing of ColdFusion code in a menu segment when I have some login and I replace the menu HTML. I had some conditional code like: <cfif isdefined("session.announcements") and session.announcements eq 1> <li><a href="cfm/announcements.cfm">Announcements</a></li> </cfif> <cfif isdefined("session.res_announcements") and session.res_announcements eq 1> <li><a href="cfm/res_announcements.cfm">RES Announcements</a></li> </cfif> This code displays menu items only if the user has clearance to access those sections in a site manager. The problem I have is the IE (seems to be working fine in FF3) is not processing the CF code unless I do a full page refresh...then it displays the menu appropriately. Here's the jQuery...any idea how to force IE to reprocess the CF, too? > $.ajax({ > type: "POST", > url: "login/login_processor.cfm", > dataType: "json", > data: formval, > success: function(response){ > > if (response.login == "Login Successful") > { $('#logstatus').empty().append("Log Out"); > $('#menu').hide(); > $('#menu').load("includes/include_menu_index.cfm").show(); > tb_remove() }