Re: Trouble disabling/nulling href of a WOHyperlink using JavaScript
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