-
1. Re: Understand the Adobe Edge & AJAX, PHP Transition
joel_pau Dec 2, 2014 1:14 AM (in response to justincode)Hi,
You open the compositionReady panel:
var form = '<form><input type="radio" name="newScore" value="1" >1<br>';
form+= '<input type="radio" name="newScore" value="2" >2<br>';
form+= '<input type="radio" name="newScore" value="3" >3<br>';
form+= '<input type="radio" name="newScore" value="4" >4<br>';
form+= '<input type="radio" name="newScore" value="5" >5<br></form>';
sym.$(form).appendTo( sym.$("Stage") );
//sym.$(form).appendTo( sym.$("Rectangle") );
$('input[name=newScore]').change( function(){
var newScore = $(this).val();
sym.$("Text").html(newScore); //just to see what happens
$.post('updatescore.php', {newScore:newScore}, function(data){
});
});
I assume you load the jQuery file: http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
-
2. Re: Understand the Adobe Edge & AJAX, PHP Transition
justincode Dec 2, 2014 1:50 AM (in response to joel_pau)Hi Joel_pau.
If i were to have 5 rectangles and each of those rectangles held a value from 1..5 how would i assign a value to each of these rectangles so that on a "mouseup" the value would be passed into the javascript variable "newScore"
many thanks.
-
3. Re: Understand the Adobe Edge & AJAX, PHP Transition
joel_pau Dec 2, 2014 2:52 AM (in response to justincode)Ok, i will add a demo file. You are using Edge 4.0?
-
4. Re: Understand the Adobe Edge & AJAX, PHP Transition
justincode Dec 2, 2014 3:42 AM (in response to joel_pau)Hi Joel_pau.
I am using the latest commercially avaliable version from adobe cloud (sorry i'm away from the machine with it on.)
Many thanks..
-
5. Re: Understand the Adobe Edge & AJAX, PHP Transition
joel_pau Dec 2, 2014 5:41 AM (in response to justincode)An attempt: sum.zip - Box
I hope i understood.



