tags:

views:

345

answers:

1
A: 

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