goll wrote:
Working with the fixed form I realized that an ajax-form might be nice
too in some of my cases. But whenever I have more than one submit
button like this:
  <input type='submit' name='s1' value='val1' />
  <input type='submit' name='s2' value='val2' />
I keep receiving all values of all buttons as POST parameters. ([s1]
=> val1 and [s2] => val2  in the above example.). This also happens
with version 0.40d2.

Is it possible to have more than one submit button in an ajax form?

Not with the current code. It is on my to do list for 0.40 final release. If you're feeling adventurous, take a look at encodeForm() (around line 615) and you may figure out what needs to be done. (line 627 is the line that's giving you trouble)

-- Sean

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" 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/iphonewebdev?hl=en.


Reply via email to