Web Design and Development Forums

Help with validation

This is a discussion on "Help with validation" within the Accessibility and Usability section. This forum, and the thread "Help with validation are both part of the Plan Your Website category.

Old Mar 4th, 2008, 17:27   #1 (permalink)
Up'n'Coming Member
 
Join Date: Mar 2006
Location: UK
Posts: 85
Help with validation

Just started validating my site on W3C and where I'm preloading my images for a javascript image map using
Code: Select all
<body onload="MM_preloadImages('image.gif')
it's flagged up as an error "document type doesn't allow element "body" here."

Can anyone help me to validate? First of many I fear!

Thanks
snappy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 4th, 2008, 17:31   #2 (permalink)
 
Join Date: Jun 2007
Location: uk
Posts: 459
Re: Help with validation

I know this is probably obvious but have you got your <body > tag open before your javascript.
dab42pat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 4th, 2008, 17:34   #3 (permalink)
Chief Moderator
 
aso186's Avatar
 
Join Date: Oct 2007
Location: UK
Posts: 715
Blog Entries: 2
Send a message via Skype™ to aso186
Re: Help with validation

As Pat said, make sure your tag structure is of the following
Code: Select all
<DOCTYPE>
<html>
<head>
<!-- Javascript, Meta tags, CSS etc. -->
</head>

<body onload="...">
<!-- Page Content -->
</body>
</html>
__________________

aso186 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 4th, 2008, 19:36   #4 (permalink)
Up'n'Coming Member
 
Join Date: Mar 2006
Location: UK
Posts: 85
Re: Help with validation

My fault sorry, the code shown is just the first few characters of the body tag.
It goes on for loads more images and does finish with a closing bracket.
snappy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 27th, 2008, 18:33   #5 (permalink)
Up'n'Coming Member
 
Join Date: Mar 2006
Location: UK
Posts: 85
Re: Help with validation

Mystery solved - the problem was with my closing </head> tag and nothing to do with validation of the <body onload.... > part.

Duh!
Thanks for help though.
snappy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
help with validation glensimister JavaScript Forum 2 Jul 26th, 2007 22:58
w3c validation cocoonfx HTML Forum 8 Jul 21st, 2007 13:55
ie and validation nate2099 New to Web Design 2 Jun 17th, 2007 00:45
CSS validation VanessaJW CSS Forum 17 May 24th, 2007 19:59



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 16:23.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59