Update ajax target on onmouseover, but just once

2011-12-13 Thread Gregor Kaczor
Hi! I have a link of which I show only the file name, the href attribute is empty. On an onmouseover event I would like to update the link via ajax to show it completely with href attribute. To avoid unnecessary load on the server this should happen just once per link on the page. If

Re: Update ajax target on onmouseover, but just once

2011-12-13 Thread Martin Grigorov
Hi, You will need to add some JavaScript logic to the button. For example: if there is attribute with name data-href then use it and don't make the Ajax call, otherwise make the call and save the returned href in data-href to reuse it for the next mouseovers. See IAjaxCallDecorator. On Tue, Dec