Hello,

for some reason the code below is not sending the values to the
test.php file. Any ideas please?

Cheers

Geoff

<script src="assets/javascripts/prototype.js" type="text/javascript"></
script>
<script src="assets/javascripts/scriptaculous.js" type="text/
javascript"></script>

<script type="text/javascript">

function send(){
var params = Form.serialize($('dataform'));
new Ajax.Updater('updateDiv', 'test.php',
{asynchronous:true,method:'get', parameters:params});
}

</script>

</head>
<body>

<form id="dataform">
<table width="100%">
<tr>
<td>
<a href="assets/audio/sound.mid">
Chord 1</a>  <input type="text" size="1" id="chord1">
</td>
<td>
Chord 2  <input type="text" size="1" id="chord2">
</td>
<tr>
<td><input type="button" onclick="send()" value="Send your figures" /
></td>
</tr>
</table>
</form>

<div id="updateDiv"></div>

</body>
</html>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to