[jQuery] Another Why doesn't this work in IE
$(#TOAppr).live(click, function(){ $.post(webapps/hr/admin/actions/act_adminHR_handler.cfm, { desc: $(this).attr('desc'), pk: $(this).attr('pk') }); $(#content-box).load(webapps/hr/admin/display/dsp_timeOffApprove.cfm?dept =+dept+ap=1); return false; }); This is the typical click the link, database stuff happens in the background, and the page is re-rendered with new data. You wind up with a table that rows are removed from when a link is clicked. This works fine in Firefox, but no re-rendering in IE, the database calls happen,, but nothing is sent back to the browser. Any suggestions -- Scott Stewart IT Consultant/ColdFusion Developer 4405 Oakshyre Way Raleigh, NC 27616 (919) 874-6229
Re: [jQuery] Another Why doesn't this work in IE
Is it okay if the load happens immediately after the data is posted? Or will it be loading something based on the DB actions having been successful completed? As it is it's not waiting for the post to complete before issuing the load. Nathan
RE: [jQuery] Another Why doesn't this work in IE
It's doing a DB Update on the back side, so it may not be ready until after the update completes.. -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Nathan Klatt Sent: Monday, January 04, 2010 3:52 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] Another Why doesn't this work in IE Is it okay if the load happens immediately after the data is posted? Or will it be loading something based on the DB actions having been successful completed? As it is it's not waiting for the post to complete before issuing the load. Nathan
Re: [jQuery] Another Why doesn't this work in IE
Then I'd say you ought to try making the load the callback of the post and see if that works, something along the lines of: $(#TOAppr).live(click, function() { $.post(webapps/hr/admin/actions/act_adminHR_handler.cfm, { desc: $(this).attr('desc'), pk: $(this).attr('pk') }, function() { $(#content-box).load(webapps/hr/admin/display/dsp_timeOffApprove.cfm?dept=+dept+ap=1); }); return false; });