PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [HTML/JS] onload Tags validieren



Maisaffe
20.09.2005, 18:27
XHTML 1.0 STRICT:

Error Line 26 column 13: there is no attribute "onLoad".

<body onLoad="GroesseVeraendernUndZentrieren();">

You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
Mein (im Moment) letzter unvalider Codeteil. O.o
Musste noch 2 andere JS Geschichten ändern, aber einfahc language="" stats script language verwenden ist ja nciht der rede wert.
Hat jmd. ein Plan was ich hier ändern muss? o.o
Bzw. in was. :rolleyes:

Dennis

Tomarus
20.09.2005, 18:43
How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case)
Da steht's doch o.o

Maisaffe
20.09.2005, 19:33
Da steht's doch o.o
Das sagt mir nur "XHTML ist doof, wie C++. Also ist XHTML eine Low- Level- Sprache"... naja, das interpretiere ich daraus, aber bringen tut mirs nichts. ^^°

Dennis

Lukas
20.09.2005, 19:36
Das sagt mir nur "XHTML ist doof, wie C++. Also ist XHTML eine Low- Level- Sprache"... naja, das interpretiere ich daraus, aber bringen tut mirs nichts. ^^°Du weißt, dass lowercase Kleinbuchstaben bedeutet? Und dass das "L" in onLoad ein Großbuchstabe ist?

Maisaffe
20.09.2005, 21:09
Du weißt, dass lowercase Kleinbuchstaben bedeutet? Und dass das "L" in onLoad ein Großbuchstabe ist?
>.<
Case... Yo Thx homie. http://www.multimediaxis.de/images/smilies/old/1/ugly.gif (mein banknachbar in der schule färbt auf mich ab? O.o
Mist, ich hab ja ein RealLife. :()

das onload() brauch ich mittlerweile nicht mehr, aber die Antwort kommt mir gerade recht.
Auf den Fehler werde ich noch öfters stolpern, bis ich selbst JS kann. :rolleyes:

Dennis