Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Errors on my web page. Can somone please help 3

Status
Not open for further replies.

IanNav

Programmer
Feb 26, 2001
79
Hi,

I have "Done, but with errors on this page" in my status bar.



Could someone have a look at the code for me and tell me whats wrong.

I'm assuming its the DIY navi bar i've done. I'm a real newbie for js sorry.


Many thanks

Ian
 
Apologies....

I've figured it out now... Typo!!!

[Post Closed]
 
Thanks cLFlaVa,

I just noticed it before i saw your post...

Thanks for the quick response.

Cheers

Ian
 


You declared imagename4 as a new Image() but did not set a source, then tried declaring a source for imagename5 without having delcared it as new Image().

When you get javascript errors, you can double-click the error icon on the status bar so that it will tell you what the error is. At least with IE it tells what type of error and at what line of code it occured.


Paranoid? ME?? WHO WANTS TO KNOW????
 
Damn, take 3 minutes to form a reply and 4 more messages come in ahead of me. :)

Paranoid? ME?? WHO WANTS TO KNOW????
 
You could install Firefox with the Web Developer toolbar (customise your install process). This will give you access to a console window that shows these errors (and even CSS warnings etc in Firefox 1.5).

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Jeff, you can access that same javascript console without adding the web developer's toolbar by Tools > JavascriptConsole. Although I still highly suggest getting the toolbar.

SW!!!!!

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
images
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top