/    Sign up×
Community /Pin to ProfileBookmark

trouble with script

hi wen my page loads i get the following error. the scrip i presume is for the menus on the page. the page can be seen at [url]http://m.1asphost.com/lynx2d/new/begin.asp[/url]

A runtime error has occured
Do you want to debug?

line 38
error ‘menuitem1’ is undefined

pls can sum 1 out there help me

thanks

scott walton
[email][email protected][/email]

to post a comment
JavaScript

11 Comments(s)

Copy linkTweet thisAlerts:
@JonaOct 13.2004 — [font=trebuchet ms]What browser are you using? It works fine in both Internet Explorer 6.0 and Mozilla Firefox 1.0PR.[/font]
Copy linkTweet thisAlerts:
@scottwalton7747authorOct 13.2004 — i am using ie 6 the error only comes up sometimes?
Copy linkTweet thisAlerts:
@JonaOct 13.2004 — [i]Originally posted by scottwalton7747 [/i]

[B]i am using ie 6 the error only comes up sometimes? [/B][/QUOTE]


[font=trebuchet ms]You said you get the error when the page loads; if it's the same JavaScript, an error should not occur randomly. Can you reproduce the problem and describe to me how you did so?[/font]
Copy linkTweet thisAlerts:
@scottwalton7747authorOct 13.2004 — it just happens sometimes when i load the page
Copy linkTweet thisAlerts:
@JonaOct 13.2004 — [font=trebuchet ms]If I cannot observe the problem, I cannot solve it. I have been unable to reproduce the effect.[/font]
Copy linkTweet thisAlerts:
@scottwalton7747authorOct 13.2004 — i seam to have stopped getting the errors after i reset internet explorer defaults. only problem i have now is this pae [URL=http://m.1asphost.com/lynx2d/new/members/quiz.asp]http://m.1asphost.com/lynx2d/new/members/quiz.asp[/URL] it is displaying what i want on the page but the main section of the page appears about halfway down the page. n e ideas???
Copy linkTweet thisAlerts:
@javaNoobieOct 14.2004 — Line 37 throws an error: menuitem1 is undefined
var shutdiv =eval('menuitem'+i+'.thediv');
Be sure to declare all variables at the start of the page.
Copy linkTweet thisAlerts:
@JonaOct 14.2004 — [font=trebuchet ms]The error did not occur on the page you linked to the first time, but in your last reply, Scott, an error was present on loading. It is apparent that javaNoobie determined the problem; I trust his statements, so I have not researched it further.[/font]
Copy linkTweet thisAlerts:
@Willy_DuittOct 14.2004 — The error is being thrown because of your use of [i]onmousemove[/i]

132: <body onmousemove="closesubnav(event);">

And is sporaticly caused depending upon if the user moves his mouse prior to the page fully loading and the division is not yet written to the page...

FWIW: That alert will always be thrown for users such as myself whom have ActiveX disabled and move the mouse to cancel the security alert and the page loading stalls until the alert is acknowledged...

.....Willy
Copy linkTweet thisAlerts:
@scottwalton7747authorOct 14.2004 — is there any way i can fix this?
Copy linkTweet thisAlerts:
@javaNoobieOct 15.2004 — you can try attaching the mouseover event after the whole document has finished loading.
×

Success!

Help @scottwalton7747 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...