Uncaught Syntaxerror in an ajax code

Asked

Viewed 56 times

0

  • Which line is the error? And which file says on the console?

  • It gives this error while typing the message in the textarea Dashboard:1 Uncaught Syntaxerror: Missing ) after argument list

  • Which line of error? in the console tells the line on which the error occurred.

  • Just say it: Dashboard:1 Uncaught Syntaxerror: Missing ) after argument list

  • You can reproduce the problem in a jsFiddle?

  • http://oi68.tinypic.com/wvea0z.jpg

  • Click on the triangle at the beginning of each line to expand the line and see the stack.

  • ta blank :\

  • @Tenaandrade you will have to debug your code, probably have some parentesis opening and is not closing.

  • I’ve looked and found no mistake

  • When the error occurs in the console, click on it or the name of the file that is on the right side. It will point out the error line. Then you show us...

  • It only shows this line: (index):1 Uncaught Syntaxerror: Missing ) after argument list

  • 41 Use '===' to compare with '0'.

  • Now I found how to see the line :)

  • @Tenaandrade Managed to fix the bug ? Stack is not notifying me when you answer me here...

  • @Gumball Oie Amore, not yet, I’m in Jshint that he says the mistakes, but I can’t, can you tell me what that means? The body of a for in should be Wrapped in an if statement to filter unwanted properties from the prototype. In this line: for (x in newMessagesWin) { newMessagesWin[x] = false; }

  • @Tenaandrade is a little difficult to understand the code without seeing much of it you know... =/ But maybe to solve this problem, you can change this for by a for more classic. Like this: for(var x=0;x<=newMessagesWin.length;x++) { newMessagesWin[x] = false }. It is that I do not know what comes in this variable newMessagesWin so I can tell you something better...

  • Love the code ta la na link I put, mto obrigado ta dando, now it’s these, ta asking to put in function, already tried everything: setTimeout('$("#chatbox_"+chatboxtitle+" . chatboxcontent"). scrollTop($("#chatbox_"+chatboxtitle+" . chatboxcontent")[0]. scrollHeight);', 7000); // yet Another Strange ie bug } setTimeout('chatHeartbeat();',chatHeartbeatTime);

Show 13 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.