• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOHyperlink and bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >WOHyperlink and bindings (From: Steve Sharman <email@hidden>)
 >Re: WOHyperlink and bindings (From: Chuck Hill <email@hidden>)
 >Re: WOHyperlink and bindings (From: Steve Sharman <email@hidden>)
 >Re: WOHyperlink and bindings (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: WOHyperlink and bindings
  • Next by Date: Tomcat By SW 3.0 - release
  • Previous by thread: Re: WOHyperlink and bindings
  • Next by thread: Re: Webobjects-dev Digest, Vol 3, Issue 250
  • Index(es):
    • Date
    • Thread