Error Message
when I try out my JavaScript Menu I get an error saying:
Error: Expected ')'
and tells me it's line 144, which is:
oMenu.makeSub(2,3,'Reports','#',Main)
(the '#' is a placeholder for the document name)
how do I find out what's really wrong? I've proofread this line and surrounding lines about a million times..
Thanks,
~Belle~
Thanks,
~Belle~
We are told that talent creates its own opportunities
But it sometimes seems that intense desire creates
not only its own opportunities, but its own talents.
- Eric Hoffer (1902-1983 American Author & Philosopher)
Rageforth posted this at 22:19 — 25th October 2000.
They have: 56 posts
Joined: Feb 2000
Can you give us a url or more of the code to look at?
CrimsonBelle posted this at 13:12 — 26th October 2000.
They have: 3 posts
Joined: Oct 2000
Here is some of the code. I included the top and then skipped to the area where line 144 is.
Navigation
<script language="JavaScript1.2" src="\\menus.js">
</script>
<script>
oMenu=new menuObj('oMenu')
oMenu.clMain='padding:5px; font-family:verdana; font-size:12px; font-weight:bold'
oMenu.clSub='padding:5px; font-family:verdana; font-size:10px'
oMenu.clSubSub='padding:5px; font-family:verdana; font-size:10px'
oMenu.clAMain='text-decoration:none; color:White'
oMenu.clASub='text-decoration:none; color:White'
oMenu.clASubSub='text-decoration:none; color:White'
oMenu.backgroundbar='1'
oMenu.backgroundbarfromleft='0'
oMenu.backgroundbarfromtop='0'
oMenu.backgroundbarsize='100%'
oMenu.backgroundbarcolor='Navy'
oMenu.mainheight='25'
oMenu.mainwidth='130'
oMenu.subwidth=oMenu.mainwidth
oMenu.subheight='20'
oMenu.subsubwidth=oMenu.mainwidth
oMenu.subsubheight=oMenu.subheight
oMenu.makeStyle()
oMenu.subplacement=oMenu.mainheight
oMenu.subsubXplacement=oMenu.subwidth/2
oMenu.subsubYplacement='7'
oMenu.mainbgcoloroff='Navy'
oMenu.mainbgcoloron='#996699'
oMenu.subbgcoloroff='#006699'
oMenu.subbgcoloron='#9966cc'
oMenu.subsubbgcoloroff='#003399'
oMenu.subsubbgcoloron='#996666'
oMenu.stayoncolor='0'
oMenu.menuspeed='12'
oMenu.menusubspeed='15'
oMenu.menurows='1'
oMenu.menueventon="mouse"
oMenu.menueventoff="mouse"
oMenu.menuplacement=new Array("5,150,300,450,600,750")
MAIN 0
******then there is a bunch of menu stuff - I'll just skip to the area where the error supposedly is: *********
oMenu.makeMain(2,'IDEO',0)
oMenu.makeSub(2,0,'IDEO Contact Information','#',Main)
oMenu.makeSub(2,1,'Documentation',0)
oMenu.makeSub(2,2,'Handspring Visor Owner's Manual','#',Main)
oMenu.makeSub(2,3,'Reports','#',Main)
oMenu.makeSubSub(2,1,0,'FAQ','#',Main)
oMenu.makeSubSub(2,1,1,'Knowledge Sheet','#',Main)
oMenu.makeSubSub(2,1,2,'RMA Flowchart','#',Main)
[Edited by CrimsonBelle on 10-26-2000 at 09:16 AM]
Thanks,
~Belle~
We are told that talent creates its own opportunities
But it sometimes seems that intense desire creates
not only its own opportunities, but its own talents.
- Eric Hoffer (1902-1983 American Author & Philosopher)
Rageforth posted this at 13:23 — 26th October 2000.
They have: 56 posts
Joined: Feb 2000
what's inside menu.js?
CrimsonBelle posted this at 14:27 — 26th October 2000.
They have: 3 posts
Joined: Oct 2000
Do you want me to put the whole file here?? It's pretty long....
Vincent Puglia posted this at 18:00 — 29th October 2000.
They have: 634 posts
Joined: Dec 1999
Hi CrimsonBelle,
A url would be much better.
The error message may be coming from the js file. Also, the actual error may be one of the lines above -- so check lines 140 through 144. If you still can't find it, post the url.
Vinny
Where the world once stood
the blades of grass cut me still
ianrules posted this at 02:03 — 6th November 2000.
They have: 74 posts
Joined: Sep 2000
Yeah either post lines 140-150 of menu.js or give us the URL of it.
Vincent Puglia posted this at 22:05 — 8th November 2000.
They have: 634 posts
Joined: Dec 1999
Hi CrimsonBelle,
I'm presuming you've found and corrected the error -- right?
Vinny
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.