Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting object/structure composition inputs from javascript



Okay, I should have known...went back to Safari 2 and it works.

On 7/25/07, David Stolarsky <email@hidden> wrote:
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>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >setting object/structure composition inputs from javascript (From: "David Stolarsky" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.