Hmm. I played around with it some more and I still couldn't get it to
work. Here's what it looks like:

<form id="formid">
<input type="text" id="textgoeshere"/>
<input type="submit" value="submit"/>
</form>

<div id="returngoeshere"></div>

<script type="text/javascript">

function fetchDataFromServer(elt, value) {
    new Ajax.Updater('returngoeshere', 'processing script', {
        parameters: 'yourServerField=' + encodeURIComponent(value)
    });

}

Event.observe('formid', 'submit', fetchDataFromServer);

</script> 

Whenever I click the submit button it reloads the page.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to