• 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: getting the selected li element form a ajaxselectionlist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the selected li element form a ajaxselectionlist


  • Subject: Re: getting the selected li element form a ajaxselectionlist
  • From: Mike Schrag <email@hidden>
  • Date: Fri, 22 May 2009 15:33:41 -0400

I was thinking using DOM to achieve that, so I can get the selected <li> by its ID the get the position in x,y, and put the image on that position, but here comes the questions the id are being generated dynamically by the AjaxSelectionLsit, so I dunno which <li> element the user has selected..
The same comes if I use the onchange binding, binded to a custom function to position the image in the right place, I dunno where and which exactly <li> was selected.. or do I?
doesn't it have a "selected" class assigned to it when it's selected? you should be able to do $$('#listid .selected') (or whatever the class is -- do a dom introspection on it to know for sure

ms

_______________________________________________
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: getting the selected li element form a ajaxselectionlist
      • From: Gustavo Pizano <email@hidden>
References: 
 >getting the selected li element form a ajaxselectionlist (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: Security control
  • Next by Date: Re: getting the selected li element form a ajaxselectionlist
  • Previous by thread: getting the selected li element form a ajaxselectionlist
  • Next by thread: Re: getting the selected li element form a ajaxselectionlist
  • Index(es):
    • Date
    • Thread