img dynamic mouseover function.
So far jquery is looking good to me. I can create new dynamic img element, parse xml etc. However, couple of things I would like to know -
1. I don't want to create new Ids everytime. Been from extjs background, is there something that does that automatically ?
2. in the below code .. $(this) refers to an xml node.
[code]
/// ajax request
....
var img = .....
img.mouseover(function() {
alert($(this).find('overview').text());
});
...
[/code]
I would want to use the text, I am reading from the xmlresponse.
However, alert is compiled only when I have my mouseover the img and at that point, this refers to the document.