I believe the problem is in the function(error)
function validateReport()
{
MyControl.selectItem({callback:function(error) {alert('ok');}});
}
The new callback function is expecting a value for the parameter error.
Try (without error as the functions parameter):
function validateReport()
{
MyControl.selectItem({callback:function() {alert('ok');}});
}
Thanks
mlevit
2009-08-04 02:53:12