• 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
WOImageButton id
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: WOImageButton id
      • From: "Mr. Pierre Frisch" <email@hidden>
  • Prev by Date: Re: Popping-up a window and updating original page: how?
  • Next by Date: Re: WOLips: Too many actions for Framework Install
  • Previous by thread: Re: NPE in WOHTTPConnection readResponse()
  • Next by thread: Re: WOImageButton id
  • Index(es):
    • Date
    • Thread