Maybe the "cache: false" idea isn't working because the problem
isn't with any of the content involving the ajax function, it's
with content in the ajax success section:  just simple loading
of content from another page not involved in the ajax process.

Even with caching set to false the menu still doesn't change
properly until the entire page is refreshed (in IE...in FF3 it works fine)

???



> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On 
> Behalf Of Rick Faircloth
> Sent: Thursday, January 08, 2009 6:09 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Re: How to force processing of ColdFusion code when using 
> .load
> 
> 
> Rats!  didn't work...
> 
> IE is putting the menu for the previous user
> back on the page and still not processing the conditional statements
> to change the menu.  Once a page refresh is performed, however, the
> menu shows up as it should.
> 
> I had tried setting no-cache on in the header of the page, too, but
> that didn't affect anything.
> 
> Any other ideas?
> 
> Rick
> 
> > -----Original Message-----
> > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On 
> > Behalf Of Josh Nathanson
> > Sent: Thursday, January 08, 2009 5:27 PM
> > To: jquery-en@googlegroups.com
> > Subject: [jQuery] Re: How to force processing of ColdFusion code when using 
> > .load
> >
> >
> > 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() }
> 


Reply via email to