Perhaps I’m just being dense, but I don’t understand why Netbeans is telling me this is bad syntax:
var events = {
'onkeyup' : 0,
'onchange' : 0,
'onclick' : 0
};
Lines 2-4 are squiggled red.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
D’oh! I failed to realize that this JavaScript is being parsed by PHP and contains some PHP code prior to the object literal assignment. Apparently the JavaScript Debugger is not too happy about statements like:
Go figure. 😛