pex
17 Apr 2007, 4:59 AM
Hello,
I bet this is a really easy question, but I can't seem to find the answer to this one. I have a div node whose content is dynamically updated using updateManager:
div.getUpdateManager().update({text: 'loading', url:'index.php'});
The result is that the div gets populated with a Form (so the index.php returns pure HTML).
Now when this HTML is loaded I want to add listeners to some of these elements in the returned HTML.
So I tried with div.getUpdateManager().on('update') but when I do console.log(Ext.get('element')); I get an error that this element could not be found.
In other words the event listener doesn't do what it says it should do, or am I using the wrong event listener?
I bet this is a really easy question, but I can't seem to find the answer to this one. I have a div node whose content is dynamically updated using updateManager:
div.getUpdateManager().update({text: 'loading', url:'index.php'});
The result is that the div gets populated with a Form (so the index.php returns pure HTML).
Now when this HTML is loaded I want to add listeners to some of these elements in the returned HTML.
So I tried with div.getUpdateManager().on('update') but when I do console.log(Ext.get('element')); I get an error that this element could not be found.
In other words the event listener doesn't do what it says it should do, or am I using the wrong event listener?