I am making an element like this:
var a_next = new Element('a', {'Id': 'nav_slider_next', 'href':'#',
'class':'next'}).update('<img src="/images/transparent.gif"/>');
I am observing the click like this:
a_next.observe('click', this.__navigate.bindAsEventListener(this));
In my __navigate routine, the element "clicked" is the <img> object, not the
<a> tag/object.
Is this expected? I'm doing:
function __navigate(e)
{
var elm = e.element()
...
}
The elm object above is the image. I'm expecting the a tag.
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.