8mile Posted July 6, 2008 Share Posted July 6, 2008 Hi all, I have PHP application that uses SWF charts to display data in graphical format. The SWF charts that i use is from http://www.maani.us/. The front page of the application has the charts displayed, and based on a users selection, the charts has to get updated. However, the <src> file(.xml or.php) that the chart uses gets updated based on the user selection, but when the html/php page load, the charts display the previous data(stale). The only way to make the chart take the new data is to close my IE/mozilla and open a new instance. Is there anyway I can force a reload in the <embed> tag?? so that on a page reload, the <embed> tag picks the updated <src> ? I am stuck, please help. Heres what i have <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="630" HEIGHT="260" id="charts" /> <PARAM NAME="movie" VALUE="charts.swf?library_path=charts_library&xml_source=CCPoverview.xml" /> <PARAM NAME="quality" VALUE="high" /> <PARAM NAME="bgcolor" VALUE="#000000" /> <param name="allowScriptAccess" value="sameDomain" /> <EMBED src="charts.swf?library_path=charts_library&xml_source=CCPoverview.xml" quality="high" bgcolor="#000000" WIDTH="630" HEIGHT="260" NAME="charts" allowScriptAccess="sameDomain" swLiveConnect="false" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED> </OBJECT> Quote Link to comment Share on other sites More sharing options...
lemmin Posted July 7, 2008 Share Posted July 7, 2008 What happens if you dynamically change the src property of the EMBED object? I would guess that would reload the xml page. If not, you can put it in an iframe and reload the iframe. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted July 9, 2008 Share Posted July 9, 2008 http://code.google.com/p/swfobject/wiki/documentation My advice would be to use the static publishing solution - you can even ignore the javascript itself and just use the mark up in step 1. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.