Javascript problem

See attached. Note that from the Firefox "Error Console" it says chk_bad is not defined (which of course it is). I cannot see the error in the Javascript.

In my past experience, this likely means an error in the javascriot that PRECEEDS the chk_bad function.

Can someone find that (those) errors?

Thanks.
error-console.jpg
bad-javascript.js
Richard KortsAsked:
Who is Participating?
 
Rainer JeschorCommented:
Thanks.
Got it:
In line 108 of your originally uploaded script file:
		if (enm.substr(0,2)) == "qt") {

Open in new window

should be
		if (enm.substr(0,2) == "qt") {

Open in new window

One closing bracket to much therefore closing the IF leaving "== ..." alone :-)

And from your uploaded HTML source:
please double check that you use the non-breaking space propertly:
They are used at some positions with the ending ";"
&nbsp ->  

HTH
Rainer
0
 
Rainer JeschorCommented:
Hi,
could you please provide the complete HTML source which is generated by your PHP page?
From the first look your script file looks OK.

Thanks.
Rainer
0
 
Richard KortsAuthor Commented:
To RainerJ

See attached.

Thanks
source-updt-taskn.htm
0
 
Richard KortsAuthor Commented:
Perfect!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.