Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple submit button form



Hi!

Does anyone happen to know how WebObjects knows which button was clicked to submit a form?

I do know that the INPUT element has an elementID and how this maps to actions in invokeAction...
So it's not the WebObjects side of things I am worried about, it's the HTML.


So when a form is submitted, by default it's form action URL is called. But what parameter tells the server what triggered the submission?

OK, what I want to do is to submit a form using JavaScript. And of JavaScript I know very little. There is stuff like: document.myForm.submit()
But what if I want to simulate the click of a button? I don't think button.click() will do it as I want to attach my script to the button, so this would be an infiite loop.


Can I grab the INPUT element's ID and somehow submit it along with the form?

Pierre

- - -
Houdah Software s. à r. l.
http://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Powerful Spotlight frontend




_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.