Solved

Html validation wont pass on javascript onchange

Posted on 2008-06-10
3
668 Views
Last Modified: 2008-06-13
Hi Im trying to html validation on code on site, with this site for validation the site pass w3schools validation but seo software says I have 52 errors on html validation, i tried 3 validation services only can find one issue not sure how to fix, im also looking for better ways to validate code.

<select name="business_name" onChange="this.form.submit();">
###################################

Error (1)
 Line Column: 190
156 Error: When using embedded events (Event-Handler), script language must be specified within Meta-Tag
(z.B. <meta http-equiv="Content-Script-Type" content="text/javascript">)
or HTTP-Header (Content-Script-Type: text/javascript)
  Error Position: "get"><select name="business_name" onChange="this.form.submit();"  
 
0
Comment
Question by:spotcher
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Expert Comment

by:TheAnarchist
ID: 21756372
Without seeing the full validation report, I can only make guesses.

From what you've posted, I am assuming that the validator suggested that you needed to specify the script language, and it gave you an example. Have you put that example meta tag in the head of your document, and tried to re-validate?
<meta http-equiv="Content-Script-Type" content="text/javascript">

Open in new window

0
 
LVL 4

Expert Comment

by:sajay_j
ID: 21757778
Use w3c for validation purpose. The URL follows;
http://validator.w3.org/

Either you need to specify the url or attach the page below. We cannot guess what causes the error..
0
 
LVL 31

Accepted Solution

by:
gwkg earned 250 total points
ID: 21765964
In the new version of the validator, they are going one step forward when it comes to validate embedded script attributes. Technicaly there has been a "request" to use a meta tag that describe what kind of script is used for embedded attributes, like "onload" or "onclick", on the page. This "request" was not mandatory to have the page valid but seams to be that now, at least for XHTML.
http://forum.statcounter.com/vb/archive/index.php/t-28939.html

Add the meta tag or change your doctype
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Horizontal Full Calendar using php 5 42
why is my slideshow so small on this wordpress site? 7 41
Error just appeared 3 23
Javascript function 3 20
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
SEO can be a real minefield to navigate, but there are three simple ways to up your SEO game just be re-assessing your content output.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question