Arrgh! Please can someone help me out with a jQuery/flash issue.
I have a page with a content region on the left and a flash movie on the right. The flash object calls in images from an XML file, using code like this (generated using swfobject.js): swfobject.embedSWF("/sites/pod_billboard.swf?XMLsrc=/Managexml/flash.aspx?pageid=n>", "swf", "500", "400", "8.0.0", "/sites/expressInstall.swf", flashvars, params, attributes); The value n determines the XML file for the flash to load. Using jQuery, I've created a script that when you click an h3 link, changes the data attribute of the flash object tag. The script is as follows: // change the value of the object data attribute to fetch an XML file for the flash billboard jQuery("h3.toggler a").click(function() { var id = this.href.substring(this.href.lastIndexOf('#') + 1); var theswf = '/sites/pod_billboard.swf?XMLsrc=/Managexml/flash.aspx?pageid='+id; jQuery('#billboard object').attr('data',theswf); }); Essentially, the script gets a number from an a href tag inside the h3. I set the pageid (n) to use this number, and then jQuery changes the data attribute with the string var theswf when the h3 link is clicked. In Firefox, this works a treat, and the flash object immediately gets the new XML file and starts loading the images specified in the XML file. However, in IE, the flash movie never refreshes with the new XML file. I've tried the jquery.flash.js plugin but have had no success at all. The script mentions this: * IMPORTANT: * The packed version of jQuery breaks ActiveX control * activation in Internet Explorer. Use JSMin to minifiy * jQuery (see: http://jquery.lukelutman.com/plugins/flash#activex). I've tried the min version with no luck either. You can examine the test page here: http://perrinepod.cluedesign.com.au/corporate/default.aspx Try it in FF first, to see how it is supposed to work, then try it in IE and be stunned at the nothing that happens. Has anyone come across this issue in IE? Is there any way to get it working like it does in FF? I've reached the end of my tether here and have no idea what to try next. :,( -- View this message in context: http://www.nabble.com/Change-the-data-attribute-of-flash-object---works-in-FF%2C-not-IE-tp20949312s27240p20949312.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.