Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery AJAX .load - flash chart doesnt load in IE

An IE issue has me completely stumped. I have a coldfusion page that uses JQuery's AJAX .load function to load in a new flash file that is generated by coldFusion's cfchart tag. This works completely fine in firefox: the new flash file and new html elements load. However in IE: all of the html elements that are geneated with the flash object are loaded, except the flash object and embed tags do not show up at all after running an ajax call in IE. After looking in Fiddler, the flash application type response data doesnt even show up for IE. It does however for Firefox.

I thought maybe it has to do with any kind of media, so i changed the chart type to output as a jpg file instead of flash. And it loads completely fine in IE. So something is preventing IE from receiving the flash response data.

Here's what i've done so far - and no luck so far:

  • Added to the HTML header: <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"><META HTTP-EQUIV="EXPIRES" CONTENT="01 Jan 1970 00:00:00 GMT"><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
  • Added random GET varaible name with a random value to call URL
  • Changed the ajax method from GET to POST
  • Changed the ajax retreival method to the .ajax with cache set to false.

Any suggestions or insight would be greatly appreciated. Thank you thank you in advance!

like image 805
GavinWoods Avatar asked Nov 05 '22 18:11

GavinWoods


1 Answers

Have you tried specifying jQuery's $.ajax "cache" option to false? IE caches pretty aggressively (I've seen it cache .jsp files.), so I wonder if jQuery knows how to get around this natively.

like image 164
Stefan Kendall Avatar answered Nov 12 '22 15:11

Stefan Kendall