Re: getting the selected li element form a ajaxselectionlist
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