Today i faced a tricky problem in opera with java script.
i had created a object in javascript with name list.
var list = {
create : function () {alert('vinod');
}
}
and i called the list.save function in my code. In FF and chrome it is working fine. But in opera it was throwing the following error
Event thread: click
Error:
name: TypeError
message: Statement on line 1: Cannot convert undefined or null to Object
Backtrace:
Line 1 of function script
javascript: list.create(false);
then i had changed the object name from list to list_vinod.
it worked fine.
var list_vinod = {
create : function () {alert('vinod');
}
}
so my suggetion is just change the object name and try...
Friday, February 19, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment