WOImageButton id
WOImageButton id
- Subject: WOImageButton id
- From: Ian Joyner <email@hidden>
- Date: Tue, 22 Jan 2008 16:00:16 +1100
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