Hi I am not familiar with Tobago in this case,
but it is generally like that that elements loose attached event listeners (if they are dynamically attached) if the node is refreshed.

The trick to cope with this is to intercept the ajax call once it is done ad reattach those events.

JSF2 for instance has a special event listener api to cope with stuff like that, I am rather sure that you have something similar in your setup.

Werner



Am 11.06.10 15:15, schrieb Abushammala, Hani (EXTERN: FTP):
Hello,

I have the same Problem on a sheet, i`ve registered event listener to
some element by loading of the page.
But after the sheet is refreshed via Ajax (e.g. sorting), the jscript
function will be not called again.


Regars,
Hani

2007/4/9, madan chowdary<[email protected]>:

Hi All,

I was just working with JavaScript in Tobago pages.

I used onload function to call a javascript function which is used to
Event.observe() on some components.

These scripts are placed in a panel which gets refreshed via Ajax.

The first time the page loads, then the desired task is achieved.

But if the panel is refreshed via Ajax, then the javascript is not
working.

I need to call the function which was done onload, the same way when the
panel is refreshed via Ajax.

Is this possible ?

Regards, Madan



Reply via email to