Re: WOImageButton id
Re: WOImageButton id
- Subject: Re: WOImageButton id
- From: "Mr. Pierre Frisch" <email@hidden>
- Date: Mon, 21 Jan 2008 23:51:04 -0800
This is a bug. Can you file a bug report please.
Thank you
Pierre
--
Pierre Frisch
email@hidden
On Jan 21, 2008, at 21:00, Ian Joyner wrote:
What I am trying to do is have a button show a pressed form when
clicked, and an unpressed form when a user moves the mouse out.
I'm trying to do this by swapping the image 'src' attribute in
JavaScript. However, to get the input field which is generated by
the WOImageButton, I'm using document.getElementById. However, when
I assign an id in the WO binding wod file, it never turns up in the
html. Testing it on a WOImage works just fine as http://en.wikibooks.org/wiki/Programming:WebObjects/Alternative_Technologies/Ruby_on_Rails#Myth
:_You_can.27t_assign_the_name_or_id_value_of_tags_in_WebObjects.
says it will do.
Binding looks like:
Search_button: WOImageButton {
id = "btnSearchTab1";
action = session.show_search_panel;
filename = "btn_search.gif";
framework = "app";
onMouseDown = "swap_image ('btnSearchTab1', 'img_search_hi');";
onMouseOut = "swap_image ('btnSearchTab1', 'img_search');";
name = "btnSearchTab1";
title = "Search mode";
vspace = 3;
}
Is there anyway to get id working?
Does anyone use an alternative method for this?
Thanks
Ian
_______________________________________________
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
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