Click to See Complete Forum and Search --> : Javascript error


prairiegirl
02-27-2003, 12:55 PM
I hope someone here can tell me what is wrong with my script. I created it with a little freebie tool, but my ISP says there is an error in my code. I am not a programmer, and do not know quite what to do about an error. Any assistance is greatly appreciated!

boojum
02-27-2003, 01:05 PM
is the error reffering to this part:


function BeforeStart(){return}

function AfterBuild(){return}

function BeforeFirstOpen(){return}

function AfterCloseAll(){return}


because i would think it should be:


function BeforeStart(){return};

function AfterBuild(){return};

function BeforeFirstOpen(){return};

function AfterCloseAll(){return};


though i cant say i understand its purpose

prairiegirl
02-27-2003, 10:14 PM
Thanks Boojum. I'll try your changes. I think perhaps those are extraneous lines. Like I said, this code was created with a little freebie code writer. It makes menus for you, and there are many different options. Perhaps these lines are just options that aren't being used? I have no idea, really.

Julie

prairiegirl
02-27-2003, 10:59 PM
I added the ; s but didn't help. The menu doesn't show. Any other ideas, let me know. The web is at:

http://home.earthlink.net/~jhall11/ropr/ropr_home.htm

AdamBrill
02-27-2003, 11:42 PM
It looks to me like the script it incomplete. Where did you get it from? Some of the variables are undefined and some of the functions that are needed aren't there. So, if you can't get the script again from somewhere, then I would just look for a different one. I've already found like 20 errors in it, and it still doesn't work... :)

prairiegirl
02-28-2003, 12:53 PM
Okay, Adam. Thank you, I will cease wasting my time.

Can anyone suggest a good drop down menu script? Where you mouse over and the next level just slides out nice and smooth, no clicking necessary? The ability to adjust whether it runs horizontally across the page or vertically along the edge would be lovely.

What would I do without you people?!?

Julie

pyro
02-28-2003, 01:00 PM
This one is quite nice...http://www.dynamicdrive.com/dynamicindex1/hvmenu/index.htm

and more can be found at http://www.dynamicdrive.com/dynamicindex1/index.html

prairiegirl
02-28-2003, 01:25 PM
Thank you Pyro, I will spend the afternoon messing with this. I promise/threaten to let you know how it goes. ;)

Julie

pyro
02-28-2003, 01:45 PM
...lol. You do that... :D

Phil Karras
02-28-2003, 02:55 PM
There are also some good beginner scripts located at:

http://www.jsworkshop.com/

Michael Moncur has all the examples from his books on the site and there are a number of menu scripts:

Here are just a few I found there:

Teach Yourself JavaScript in 24 Hours by Michael Moncur, 1st Edition

VI Putting it All Together
List22-6.html - Fictional Software Company (rollovers, dropdown menu, etc.)


Teach Yourself JavaScript in 24 Hours by Michael Moncur, 2st Edition

VI Putting it All Together
List22-6.html - Fictional Software Company (rollovers, dropdown menu, etc.)



Teach Yourself JavaScript in 24 Hours by Michael Moncur, 3rd Edition

VI Putting it All Together
List23-2.html - Fictional Software Company (rollovers, dropdown menu, etc.)



Teach Yourself DHTML in 24 Hours by Michael Moncur

IV Dynamic HTML in Action
List13-1.html - Figby Example Page (using: Drop-Down Menus, uses 13-2)
List13-2.js - The JavaScript file for List13-1.html
List14-1.html - Creating a Navigation Tree (Menu Tree by any other name)
List14-2.js - The JavaScript file for List14-1.html

Phil Karras
02-28-2003, 03:00 PM
Originally posted by Phil Karras
There are also some good beginner scripts located at:

http://www.jsworkshop.com/

Michael Moncur has all the examples from his books on the site and there are a number of menu scripts:

Here are just a few I found there:

Teach Yourself JavaScript in 24 Hours by Michael Moncur, 1st Edition

VI Putting it All Together
List22-6.html - Fictional Software Company (rollovers, dropdown menu, etc.)


Teach Yourself JavaScript in 24 Hours by Michael Moncur, 2st Edition

VI Putting it All Together
List22-6.html - Fictional Software Company (rollovers, dropdown menu, etc.)



Teach Yourself JavaScript in 24 Hours by Michael Moncur, 3rd Edition

VI Putting it All Together
List23-2.html - Fictional Software Company (rollovers, dropdown menu, etc.)



Teach Yourself DHTML in 24 Hours by Michael Moncur

IV Dynamic HTML in Action
List13-1.html - Figby Example Page (using: Drop-Down Menus, uses 13-2)
List13-2.js - The JavaScript file for List13-1.html
List14-1.html - Creating a Navigation Tree (Menu Tree by any other name)
List14-2.js - The JavaScript file for List14-1.html

NOTE: The http://www.jsworkshop.com/ site is for people who want to learn to program in JavaScript NOT for free scripts or requests for such. SO, if you want to learn ask your questions there, if you just want it to work differently pick up the free scripts and ask your questions here.

prairiegirl
03-02-2003, 10:08 PM
It works. I have to actually *mess* with it, it's not automated, but it works. :) Thanks, bud!

Julie

prairiegirl
03-02-2003, 10:11 PM
Thank you for all the links. I have no desire to unleash my intuitive/feeling self upon the javascripting community. Experience has made it crystal clear to me that I am not a programmer, but I do thank you for the tips. I shall continue to throw myself upon the mercy of those more adept than I.

Julie