I am not able to send compositions object inputs. I'm trying the following
code (from a November post) which attempts to use /Developer/Examples/Quartz
Composer/Chart/Chart.qtz:
I'm using the Safari 3 beta. Nothing happens when I press the button,
except the alert().
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
<html>
<head>
<title></title>
<script language = "javascript" type="text/javascript">
function change2()
{
alert("rr");
}
function change()
{
var plugin = document.getElementById("qcPlugin");
entry0 = new Object;
entry0.label = "Base Line";
entry0.value = 0.5;
entry1 = new Object;
entry1.label = "Your Sore";
entry1.value = 0.2;
entry2 = new Object;
entry2.label = "Multi 2";
entry2.value = 0.7;
plugin.setInputValue("Data",new Array(entry0, entry1, entry2));
alert('tried');
}
</script>
</head>
<body >
<embed id = "qcPlugin" width = "400" height = "400" src = "Chart.qtz" type
= "application/x-quartzcomposer" >
</embed>
<button onClick="change()">change()</button>
</body>
</html>