3 replies [Last post]
MalphasWats
Offline
Regular
Last seen: 14 years 12 weeks ago
Joined: 2004-03-22
Posts: 45
Points: 0

Hi, I've been playing around with a little bit of javascript but I can't make it validate. I have to use the onLoad attribute in the body to start a timer off, and the name attribute in an image tag to reload it after timeout (webcam). the XHTML 1.1 checker doesn't much like either of these things.

Is there any way I can achieve what I want and comply?

example is at:
http://www.aqpj48.dsl.pipex.com/webcam/webcam.html

ta muchly.
-Mal

http//www.michael-watts.com

"Never put your face in a bag of angry squirrels"

Tags:
Fruitcake
Offline
Enthusiast
Perth, Australia
Last seen: 12 years 43 weeks ago
Perth, Australia
Timezone: GMT+8
Joined: 2004-04-12
Posts: 257
Points: 0

javascript and 1.1

All i know is the name attribute was deprecated back in XHTML 1.0

I am Dan, Dan I am.

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 6 days 10 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

javascript and 1.1

Hi MalphasWats,
onLoad should be onload, in xhtml all tag attributes should be in lower case.

Hope that helps

MalphasWats
Offline
Regular
Last seen: 14 years 12 weeks ago
Joined: 2004-03-22
Posts: 45
Points: 0

javascript and 1.1

doh! didn't notice that one! Thanks Tony.

I know that the name attribute has been deprecated, but id doesn't seem to be passed into scripts and stuff?

-edit scratch that, it does work without the name attribute, I must have done that change more than one thing at a time thing, which is always bad.

I'm all compliant and happy now.

http//www.michael-watts.com

"Never put your face in a bag of angry squirrels"