Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 08-24-2005, 09:16 AM Taking HTML to XHTML
MightyMaster's Avatar
Ultra Talker

Posts: 401
Location: Appleton, WI
Trades: 0
OK ... I am trying to convert my sites and I am running into a problem.

I have

<a href="#" class="nav" onClick="this.style.behavior='url(#default#homepag e)';this.setHomePage('http://www.yada.com');">Make The yada Your Homepage</a>

Anyways ... when I validate this it tells me the onClick is not a chosen document type.

Any clue on how I can fix this? Is there a way I can fix this via CSS.

The actual quote from the validator is "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."
MightyMaster is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-24-2005, 09:39 AM
fancymoustache's Avatar
Ultra Talker

Posts: 316
Location: Michigan
Trades: 0
I had the same problem, before. But your post answers your question:
Quote:
Originally Posted by MightyMaster
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."
So, You'll have to put "onclick" rather than "onClick". That should work.

Hope it helps.
__________________
For over a thousand generations, the Jedi Knights were the guardians of peace and justice in the Old Republic. Before the dark times, before the Empire.
fancymoustache is offline
Reply With Quote
View Public Profile
 
Old 08-24-2005, 09:45 AM
MightyMaster's Avatar
Ultra Talker

Posts: 401
Location: Appleton, WI
Trades: 0
Yeah ... thanks ... I just thought of that and was coming back to let you know that I am an idiot and should have caught that earlier.

Thanks though!
MightyMaster is offline
Reply With Quote
View Public Profile
 
Old 08-24-2005, 09:47 AM
fancymoustache's Avatar
Ultra Talker

Posts: 316
Location: Michigan
Trades: 0
NP. We all do it... or at least I do.
__________________
For over a thousand generations, the Jedi Knights were the guardians of peace and justice in the Old Republic. Before the dark times, before the Empire.
fancymoustache is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Taking HTML to XHTML
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26784 seconds with 12 queries