Click to See Complete Forum and Search --> : JavaScript calendar: code works, but syntax error remains


mkerod30
04-15-2004, 12:49 PM
:confused:

I am using an javascript from rainforestnet.com

the date & time calendar.

i am getting the following error on the page although the form and JScript is working.


Here's the error:

LIne: 24
Char:24
Error: Expected')'
Code:0

I am kind of new to Javascript how can i fix this or troubleshoot it?

jaegernaut
04-15-2004, 01:07 PM
Looks like you are missing a closing parenthisis.

If you can post your code we can better troubleshoot for you.

mkerod30
04-15-2004, 01:13 PM
i attached to code

jaegernaut
04-15-2004, 01:28 PM
From what I can see it looks like the problem stems from the js file.

There is this line that is broken across 2 lines:
var MonthName=["January", "February", "March", "April", "May", "June","July",
"August", "September", "October", "November", "December"];

This should all be on one line.

When I fixed that I didn't get an error.

mkerod30
04-15-2004, 01:43 PM
ok i fixed that, but i still get the error.

heres the jsfile.

jaegernaut
04-15-2004, 02:00 PM
I don't get this error.

I'm running IE 6.0.2800 on W2000

What are you running on?
Are you getting the same error you mentioned above?

mkerod30
04-15-2004, 02:20 PM
Yeah the error is still the same.
I am running

win2000
IE 6.0.2800.1106

jaegernaut
04-15-2004, 02:39 PM
Okay, I've copied both files as is and ran it. I don't get the error you state. I did get an Object Expected on Line 20, but I haven't been able to figure out why.

I have to go for now, but I'll check in again later to see if someone else has identified the problem.

jaegernaut
04-16-2004, 07:51 AM
Okay, this is theory only.

I don't receive any errors until I submit this form. I then get the Object Expected error on line 20. I believe this is because you have a validation function that is driven by FrontPage. For this to work properly you will have to load this in an area where FrontPage extentions are loaded.

The same with all the FrontPage WebBot stuff as well. I still haven't seen the error message you reported, but if you are going to use this form you will have to put it in a FrontPage accessible area or recode so that you aren't using the FrontPage functions.

Sorry I couldn't be of more help.

•geezey•
04-18-2004, 01:12 AM
your code looks ok... Um did you type it up? I used MS front page it has a HTML interface and a preview interface its the same thind as what happend to mine try this...


If it still comes up with the error then reconstruct the HTML.
sorry if thats not what you want to do but it will fix it.