English 中文(简体)
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!

问题回答

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.

For some reason, although I haven t investigated enough to be sure what it is, jQuery loads or even .show() will fail silently in IE when applied to a flash object.

There s a jQuery Plugin that makes it possible to dynamically load flash, though -- http://jquery.thewikies.com/swfobject/

It should work for this application.





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签