SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: W3C validation issues...
-
Dec 19, 2003, 06:16 #1
W3C validation issues...
Any ideas on this? It's my JavaScripts causing validation problems. The site is at http://your.workcomms.com/ntl/
Firstly, it doesn't like onResize. Is there a way to "validly" implement an onResize?
Secondly, it doesn't like the way I use a div to discover the left-hand edge of a table and position another div accordingly. Can someone have a look at this and tell me if it's right?
Here's the W3C error output:
Originally Posted by The W3C mum!
GDrupal Development -- Hire me!
Drupal Training | Darwin Awards Moderator | Classic Cars
SitePoint | Blog | Rent Games Online | Car | Talent
-
Dec 19, 2003, 10:05 #2
- Join Date
- Dec 2003
- Location
- A van down by the river
- Posts
- 2,056
- Mentioned
- 0 Post(s)
- Tagged
- 1 Thread(s)
as you're validating XHTML, it helps to remember that attributes should be lower case.
As for the rest, you might try 'hiding' the 'errors' from the XHTML validator.Last edited by rushiku; Dec 19, 2003 at 14:10.
-
Dec 19, 2003, 10:36 #3
Thanks. Hiding the the other code from the validator worked, but it still isn't happy with onresize, even lower case. It claims onresize is not a valid attribute??
GDrupal Development -- Hire me!
Drupal Training | Darwin Awards Moderator | Classic Cars
SitePoint | Blog | Rent Games Online | Car | Talent
-
Dec 19, 2003, 11:55 #4
- Join Date
- Dec 2002
- Location
- Alabama, USA
- Posts
- 2,560
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Suggestions...
1) put all your js in a separate file.
2) don't put onresize="..." in the body tag (i don't put onload there either but that's a personal choice). In the separate js file put...
Code:window.onload = function() { MM_preloadImages(...); } window.onresize = function() { window.location.href('default.asp'); }
Cross-Browser.com, Home of the X Library
-
Dec 19, 2003, 12:42 #5
Ahhhh... fantastic! Thanks again Mike!!
Drupal Development -- Hire me!
Drupal Training | Darwin Awards Moderator | Classic Cars
SitePoint | Blog | Rent Games Online | Car | Talent
-
Dec 19, 2003, 14:04 #6
- Join Date
- Dec 2003
- Location
- A van down by the river
- Posts
- 2,056
- Mentioned
- 0 Post(s)
- Tagged
- 1 Thread(s)
Sorry Greg, my bad.
A quick review of an XHTML reference reveals that onresize is no longer a valid attribute for the body tag.
Bookmarks