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
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]
