• 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: Trouble disabling/nulling href of a WOHyperlink using JavaScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble disabling/nulling href of a WOHyperlink using JavaScript


  • Subject: Re: Trouble disabling/nulling href of a WOHyperlink using JavaScript
  • From: Ramsey Lee Gurley <email@hidden>
  • Date: Wed, 12 Aug 2009 20:53:07 -0400


On Aug 11, 2009, at 2:20 PM, Matthew Kidd wrote:


I'm attempting to copy and store the href attached to a WOHyperlink so that I can deactivate a "button" on a form. Numerous attempts have resulted in the closest attempt being a link that appears to refer to the previous page.

Is there a way to disable a WOHyperlink via _javascript_ or java that effectively deactivates the WOHyperlink?

Matt

Button: WOGenericContainer {
    elementName = "button";
    type = "button";
    value = ^value;
    onclick="yourScript();";
    name = context.elementID;
    class = ^class;
    style = ^style;
}

I'm with Klaus here :-) Standard xhtml.  A button can wrap other content, just like a hyperlink can. Styles for a disabled look can be set via java server side, or _javascript_ client side.  The easiest way is to give it a class for disabled and enabled.  Since the type is "button" then it will act as a push button and only perform a submit on click if you tell it to do so via logic available in yourScript().  Change type to "submit" if you want it to act like a typical submit button.

Ramsey

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: 
 >Trouble disabling/nulling href of a WOHyperlink using JavaScript (From: Matthew Kidd <email@hidden>)

  • Prev by Date: Re: [SOLVED]: Ant Build Error
  • Next by Date: Follow up on Rule Modeler and Repetitions
  • Previous by thread: Re: Trouble disabling/nulling href of a WOHyperlink using JavaScript
  • Next by thread: Re: Connect Directory Services : invalid credentials
  • Index(es):
    • Date
    • Thread