Click to See Complete Forum and Search --> : Error solving


Taipan
06-22-2004, 01:09 AM
I am using a javascipt menu that I downloaded from somewhere (can't remember). It has a file called config.js that contains all the relevant data for the menu eg, colors, fonts, alignments etc. I have made a page using php and javascript that allows me to choose colors, fonts, etc and it then saves the variables to a mysql database and then writes a file identical to the config.js file. But when I view the page there is errors. I have printed out both the working javascript and the one with errors and they look identical. How can I tell what the errors mean.

I get 2 errors:-
Line: 88
Char: 63
Error: Expected ')'
Code:0
URL: http://mysite.com/menu.php

Line: 2
Char: 349
Error: 'MenuUsesFrames' is undefined
Code:0
URL: http://mysite.com/menu.php

How do I know exactly where line 88 char 63 is? There are no missing ')' as far as I can see. The variable MenuUsesFrames is defined in the script too.

Any help in solving this problem would be greatly appreciated.

Pittimann
06-22-2004, 01:54 AM
Hi!

Can you please post the code or a link to the "config.js"?

Cheers - Pit

Taipan
06-22-2004, 06:05 AM
Thanks for the offer, I figured it out. I was missing some backslashes, I needed some double ones in a couple of spots.

Pittimann
06-22-2004, 06:11 AM
Hi!

No prob. The main thing is that you got it working! :D

Cheers - Pit