win.body.getUpdater().startAutoRefresh() doesn't want to update window body element!
I have the window:
Code:
win = desktop.createWindow({
.....Config Options....
, app: this.app
, phpFile: this.phpFile
, moduleId: this.moduleId
, listeners:{
activate: function (w) {
w.body.getUpdater().update({
url: w.app.connection
, params: {
task: "getBalance"
, moduleId: w.moduleId
, fileName: w.phpFile
}
, method: 'POST'
, scripts: false
, discardUrl: true
, scope: w
, nocache: true
});
}
}
});
Activate listener works correctly.
After window definition I tried to use this code to start auto refresh window.body content.
Code:
win.show();
win.body.getUpdater().startAutoRefresh(2);
Also i tried this code:
Code:
win.body.getUpdater().startAutoRefresh({
interval: 2
, url: app.connection
, params: {
task: "getBalance"
, moduleId: moduleId
, fileName: phpFile
}
, refreshNow: false
});
FireBug shows me the error:
Code:
cfg has no properties
[Break on this error] url = cfg.url;
How to start auto update window's body element with sending POST params?
I've read docs, and found that if I didn't specify new url method should use the last used url.