Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: auto-postback <script> tag non w3c compliant


Message #1 by "Hadj Ullelah" <hadj_hadj@h...> on Mon, 29 Jul 2002 10:48:17
Hello,

I am building aspx .NET pages, which I want/need to validate as XHTML 1.0
Transitional. Unfortunately, the automatic postback JavaScript function
which is output by asp.net does not include a type attribute, and thus
fails to validate. Is there anyway I can customize or override (ideally on
a system.-wide global level) the way this function is output ?

Currently I get:

<script language="javascript">
<!--
	function __doPostBack(eventTarget, eventArgument) {
		var theform = document._ctl1;
		theform.__EVENTTARGET.value = eventTarget;
		theform.__EVENTARGUMENT.value = eventArgument;
		theform.submit();
	}
// -->
</script>

What I would like is :

<script type="text/javascript">
<!--
	function __doPostBack(eventTarget, eventArgument) {
		var theform = document._ctl1;
		theform.__EVENTTARGET.value = eventTarget;
		theform.__EVENTARGUMENT.value = eventArgument;
		theform.submit();
	}
// -->
</script>

Any help appreciated, thanks...

Hadj Ullelah

  Return to Index