0
I’m creating a chat, but in the console it gives the following error:
Uncaught Syntaxerror: Missing ) after argument list
Code: http://www.redepurple.com.br/social/Code/chatjs/chat.js
What can it be?
Thank you!
0
I’m creating a chat, but in the console it gives the following error:
Uncaught Syntaxerror: Missing ) after argument list
Code: http://www.redepurple.com.br/social/Code/chatjs/chat.js
What can it be?
Thank you!
Browser other questions tagged jquery ajax
You are not signed in. Login or sign up in order to post.
Which line is the error? And which file says on the console?
– Sergio
It gives this error while typing the message in the textarea Dashboard:1 Uncaught Syntaxerror: Missing ) after argument list
– Tena Andrade
Which line of error? in the console tells the line on which the error occurred.
– Sergio
Just say it: Dashboard:1 Uncaught Syntaxerror: Missing ) after argument list
– Tena Andrade
You can reproduce the problem in a jsFiddle?
– Sergio
http://oi68.tinypic.com/wvea0z.jpg
– Tena Andrade
Click on the triangle at the beginning of each line to expand the line and see the stack.
– Sergio
ta blank :\
– Tena Andrade
@Tenaandrade you will have to debug your code, probably have some parentesis opening and is not closing.
– JuniorNunes
I’ve looked and found no mistake
– Tena Andrade
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...
– Diego Souza
It only shows this line: (index):1 Uncaught Syntaxerror: Missing ) after argument list
– Tena Andrade
41 Use '===' to compare with '0'.
– Tena Andrade
Now I found how to see the line :)
– Tena Andrade
@Tenaandrade Managed to fix the bug ? Stack is not notifying me when you answer me here...
– Diego Souza
@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; }
– Tena Andrade
@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 afor
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...– Diego Souza
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);
– Tena Andrade