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

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

  • Follow-Ups:
    • Re: WOImageButton id
      • From: Ian Joyner <email@hidden>
References: 
 >WOImageButton id (From: Ian Joyner <email@hidden>)

  • Prev by Date: Re: WOLips: Too many actions for Framework Install
  • Next by Date: Re: No WOResponse?
  • Previous by thread: WOImageButton id
  • Next by thread: Re: WOImageButton id
  • Index(es):
    • Date
    • Thread