On 24-Apr-06, at 1:37 PM, Chuck Hill wrote:


On Apr 22, 2006, at 12:13 AM, Steve Sharman wrote:

Thanks Chuck - that worked fine (and having read up a little more, I think I even understand why what I was doing didn't work...)

In case you were still wondering... Hyperlinks don't submit the form so no form data goes to the server. With no form data present, WO skips the takeValues phase. And even if it didn't, there are no values to take. :-) The other option to using submit buttons is to have the hyperlink submit the form. However, with multiple hyperlinks and one form, WO has no way of knowing which link was clicked. You might be able to do this by using JavaScript to copy the link's URL into the form. This might even "just work" with no further action from you.


The other alternative is to use JavaScript to set a hidden field when the link is clicked and before the form submitted. Like this, you will have to do some fancy work on page to translate this field into the equivalent of clicking on the hyperlink.

WOCode has HWOSubmitLink that does this for you.

<http://wocode.com/cgi-bin/WebObjects/WOCode.woa/2/wa/ShareCodeItem? itemId=413&wosid=AbaAKvjtcWYtuigwVvxenM>

--
;david

--
David LeBer
Codeferous Software
'co-defer-ous' adj. producing or containing code
site:   http://www.codeferous.com
blog: http://david.codeferous.com




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to