Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML Validation: javascript

Status
Not open for further replies.

KnotGoblin

Technical User
Jan 4, 2005
77
0
0
US
The only thing that i am having trouble getting to validate in web app is the javascript block that ASP .Net is generating.

specifcally, this function:
Code:
function __doPostBack(eventTarget, eventArgument){}

the error is that the script element does not have the type attribute (it only has the language attribute).

i am using 4.01 loose:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "


So how can i get this:
Code:
type="text/javascript"
in the script element?

-Jer
 
thats strange this is what it generated fo me:

<script language="javascript" type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
theform = document._ctl0;
}
else {
theform = document.forms["_ctl0"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>


Known is handfull, Unknown is worldfull
 
I have a few pages that generate that script and none of them include the type="text/javascript".

-Jer
 
i have checked it in 2 different servers. i still get the type attribute...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top