PDA

View Full Version : Error: expected ")" - but the ")" is THERE!


slynx2002
01-24-2003, 10:07 PM
var psswd = loginpass;
var mmname = loginname;

alert('name is ' + mmname + ', password is ' + psswd + '.');


112-> if (psswd != "oh"){
alert('Only members ETC');
}
else
{
alert('Welcome, ETC.');
}
}

If I comment out from line 112 on, I get the alert before it OK. I have tried this if statement with various conditions and still get the same error. Have checked my books .... according to what they show, this should work .... Anybody see something I am missing? :confused:

beetle
01-24-2003, 10:24 PM
Nothing off hand. You do have one more closing brace than you do opening braces in that snippet, but I can't tell if that's from something else or not...

got a link?

slynx2002
01-24-2003, 10:28 PM
No ... it's only on my computer.

It shouldn't work any different locally than online, should it?

I can upload it to a server,if necessary ....

or give the code of the entire page (which might also cause a problem because earlier in the script it rewrites a frame).

beetle
01-24-2003, 10:30 PM
Shouldn't. I'd really need to see all/most of the code. So upload it, or make it a txt file and attach it to a post, or copy-paste the code into a message.

slynx2002
01-24-2003, 10:40 PM
I've uploaded it to:

http://www.reinuse.com/MEV/

any help you could give would be appreciated .... it has been a long time since I did Javascript .... I usually do this with Perl.