Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

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
0
Richard Korts
Asked:
Richard Korts
  • 2
  • 2
1 Solution
 
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
 
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
 
Richard KortsAuthor Commented:
Perfect!!
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now