I have a percent gauge dashboard widget implemented as an SWF movie. I am using jQuery in my JSP to achieve some AJAX update capability. For now, I am simply trying to set the value that displays on the gauge with the SetVariable() function in the code below. This cannot be done as an initial flashvar by design of the creator of the gauge (for which I do not have the source).
Problem is that both IE and FireFox complain that SetVariable is not a supported function.
Can anyone suggest a better approach to achieve this?
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<title>Insert your title</title>
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="js/jquery.swfobject.1-1-1.js"></script>
<script type="text/javascript">
var pct_gauge = $.flash.create ({
swf: 'flash/percentgauge.swf',
width: 200,
height: 200,
wmode: 'transparent',
play: true,
flashvars: {
title: 'Percent Contracts Valid'
}
});
$(document).ready(function() {
$('#pct_gauge').html(pct_gauge);
// $('pctgauge').SetVariable("pValue", 75); ???????
});
</script>
</head>
<body>
<div id="pct_gauge"></div>
</body>
</html>