I have used an example script how to convert a SWF file to the JQuery SWF plugin (http: //jquery.thewikies) Load from. Com / swfObject / example). I am trying to work with the plugin in a JSP. It works in Firefox and Chrome but not in IE8.
Can anyone see any clear issues? thank you in advanced.
& lt;% @ taglib prefix = "c" uri = "http://java.sun.com/jstl/core"% & gt; & Lt ;! DOCTYPE html PUBLIC "- // W3C / / DTD XHTML 1.1 / n" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "js / jquery-1.4.2.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Script type = "text / javascript" src = "js / jquery.swfobject.1-1-1.js" & gt; & Lt; / Script & gt; & Lt; Body & gt; & Lt; Script type = "text / javascript" & gt; Var bar_chart = $ .flash.create ({swf: 'flash / open-flash-chart.swf', width: 350, height: 260, wmode: 'transparent', game: true, flashwares: {"receive-data" : "GetChart1Data"}}); Function getChart1Data () {return JSON.stringify ($ {chart1Data}); }; Function ofc_ready () {/ ** /}; $ (Document) .ready (function () {$ ('# bar_chart'). Html (bar_chart);}); & Lt; / Script & gt; & Lt; TR & gt; & Lt; Td colspan = "2" & gt; & Lt; Table & gt; & Lt; TR & gt; & Lt; TD & gt; & Lt; Div id = "bar_chart" & gt; & Lt; / Div & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Body & gt; & Lt; / Html & gt;
Your HTML browser's behavior is unpredictable.
This is a syntax valid. Try it one.
& lt;% @ taglib prefix = "c" uri = "http://java.sun.com/jstl/core"% & gt; & Lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Insert your title & lt; / Title & gt; & Lt; Script type = "text / javascript" src = "js / jquery-1.4.2.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" src = "js / jquery.swfobject.1-1-1.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Var ":" GetChart1Data "}}; function getChart1Data () {return JSON.stringify ($ {chart1Data});} Function ofc_ready () {/ ** /} $ (document) .ready (function () {$ ( '# Bar_chart'). Html (bar_chart);});
gt; body & gt; & lt; div id = "bar_chart" & gt; I deleted the table because it is incomplete and only for demo Adds noise.
Comments
Post a Comment