nora
21 Dec 2006, 12:42 PM
I had real problems to get my code working- now I've realised that if i eliminate all alerts in my code everything works fine?
any ideas?
this is my code:
function deleteMessage(){
var param=grid.getSelectedRowId();
alert('test');
dialog('delete',param); //function defined in another skript
}
var tb = new YAHOO.ext.Toolbar('example-toolbar');
tb.addButton({
text: 'delete',
click: deleteMessage
});
the alert works fine - but the code after the alert is never reached.
As soon as I remove the alert the function dialog() is reached and works fine.
thanks for help!
any ideas?
this is my code:
function deleteMessage(){
var param=grid.getSelectedRowId();
alert('test');
dialog('delete',param); //function defined in another skript
}
var tb = new YAHOO.ext.Toolbar('example-toolbar');
tb.addButton({
text: 'delete',
click: deleteMessage
});
the alert works fine - but the code after the alert is never reached.
As soon as I remove the alert the function dialog() is reached and works fine.
thanks for help!