PDA

View Full Version : onload even fires more than 20 times



qiuyl
2 Dec 2006, 12:36 AM
It looks the onLoad event has been fired more than 20 times for a single data request:

onLoad = function(){
if(dm.getRowCount() < 1){
preview.setContent('');
}
statusPanel.getEl().addClass('done'); //I found it when debug
statusPanel.setContent('Done.');
};

I slightly changed the code from the feedviewer example.

Can anybody confirm it? Thank you.

jack.slocum
2 Dec 2006, 4:54 AM
You need to post more code than that. I would guess that if it is firing 20 times, you have subscribed 20 times. :)