Pretty simple:
In a asp.net repeater I have an anchor tag which gets a unique id from a databind:
In a JavaScript method, I want to get the id of the tooltip and set it's target control to the link which clicked it. The code below works; that is until about after 10 or 15 clicks then it starts to show up on incorrect links. No page refreshes are done during this time. Thoughts?
In a asp.net repeater I have an anchor tag which gets a unique id from a databind:
<
a
id="<%# ((Item)Container.DataItem).List.ListId %>" onclick="javascript:PositionToolTip(this)">...
In a JavaScript method, I want to get the id of the tooltip and set it's target control to the link which clicked it. The code below works; that is until about after 10 or 15 clicks then it starts to show up on incorrect links. No page refreshes are done during this time. Thoughts?
function
PositionToolTip(clientId)
{
var
radToolTip = $find(
"<%= ModalToolTip.ClientID %>"
);
radToolTip.set_targetControlID(clientId.id);
radToolTip.show();
}