frank a écrit :
> Thank you for your help. One last question. How would you trigger the
> fetchDataFromServer function with a button? So basically the text
> entered only gets sent to the processing script once a 'submit' button
> is pressed.
If the button is a <input type="submit"/> in your form, just observe the
form's submit event:
Event.observe('yourFormId', 'submit', fetchDataFromServer);
--
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---