Google Groups Home
Help | Sign in
Patch for Remote.Form
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Haruki Zaemon  
View profile
 More options 2 Apr, 03:21
From: Haruki Zaemon <haruki_zae...@mac.com>
Date: Tue, 1 Apr 2008 19:21:32 -0700 (PDT)
Local: Wed 2 Apr 2008 03:21
Subject: Patch for Remote.Form
I finally worked out why my forms weren't submitting when the user
hits the ENTER key. lowpro serializes the button that was clicked
along with any other parmeters when submitting a form via AJAX.
However, when the user hits enter under FireFox, there is no button
and the consequently the browser barfs. Safari on the other hand tries
to be too helpful and triggers an onclick event for the first submit
button (which is why I never noticed it).

So anyway, rather than try to be too clever myself, I simply changed
the parameter serialization in Remote.Form.onsubmit to look like:

parameters : this.element.serialize({ submit: this._submitButton ?
this._submitButton.name : null })

Problem solved.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google