jsp - How to SetVariable in jQuery -


I have a percent gauge dashboard widget implemented as a SDF movie. I'm using jQuery in my JSP to gain some AJAX update capabilities. For now, I'm just trying to set the value which displays on the gauge with the SetVariable () function in the code below. This gauge can not be used as an initial flashover for the creator (whose I do not have a source.)

The problem is that both IE and Firefox complain that SetVariable is not a supported function

Is there a better way to get it? Can give Is received?

  & lt;% @ taglib prefix = "c" uri = "http://java.sun.com/ Jstl / core"%> & 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 pct_gauge = $ .flash.create ({swf: 'flash / percentgauge.swf', width: 200, height: 200, wmode: 'transparent', game: true, flashwares: {title: 'percent contract valid'}} ); $ (Document) .ready (function () {$ ('# pct_gauge'). Html (pct_gauge); // $ ('pctgauge'). Setable ("pValue", 75); ??????? ); & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "pct_gauge" & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

I think you should

  $ ('#Pctgauge') Flash (function () {this.SetVariable ("pValue", 75);});  

Comments