I have just started using prototype and love it. I have already
completed several apps in short time. I do have one question that I
have been unable to find an answer for. I have a handful of forms and
would like to submit the forms using the return key and to not have
them always use there mouse. I guess I''m looking for proper
impemantation using prototype. Does anyone have an example that I
could see? Below is one of my basic forms with only one field.
<script type="text/javascript" language="JavaScript">
function checkDate() {
var q = document.getElementById(''wedDate'').value;
new Ajax.Request("AJAXProcessor.asp", {
method: ''post'',
parameters: ''page=CheckDate&q='' + q,
onCreate : displayLoading("dateResult"),
onComplete: function (req) {
if (req.responseText != "") {
document.getElementById("dateResult").innerHTML=req.responseText;
}
}
});
}
</script>
Any help would be appreciated.
Marty
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---