Re: WOHyperlink and bindings
Re: WOHyperlink and bindings
- Subject: Re: WOHyperlink and bindings
- From: David LeBer <email@hidden>
- Date: Mon, 24 Apr 2006 13:53:50 -0400
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden