Modifying Javascript calls from scriptManager

Last post 11-18-2008 8:55 PM by A1ien51. 1 replies.

Sort Posts:

  • Modifying Javascript calls from scriptManager

    11-18-2008, 6:30 PM
    • Member
      point Member
    • roryTatem
    • Member since 11-18-2008, 10:48 PM
    • Posts 1

    Hey there,

    First let me say that I am not a backend developer, I much prefer the front end of things.

    I'm not sure where I should post this but since it resides in front end validation, i'll put it here.

    I am using .Net 3.5 with the Ajax Toolkit and my developer has stated that you cannot modify the code that is generated by the scriptManager in regards to javascript calls. My first question is, is this true? My second question is, how do we do this if at all possible?

    example:

    <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['aspnetForm'];
    if (!theForm) {
    theForm = document.aspnetForm;
    }
    function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
    theForm.__EVENTTARGET.value = eventTarget;
    theForm.__EVENTARGUMENT.value = eventArgument;
    theForm.submit();
    }
    }
    //]]>
    </script>
     
    All I would like to do is add "language='javascript'" to the script call in order for my page to validate xhtml standards compliant.
    If this at all possible that would be great. If not, it would be quite useful to people if it could be done at some point.
    Thanks for your help. 

     

  • Re: Modifying Javascript calls from scriptManager

    11-18-2008, 8:55 PM
    Answer
    • All-Star
      20,690 point All-Star
    • A1ien51
    • Member since 05-06-2005, 2:46 PM
    • MD USA
    • Posts 3,806

    language attribute for the script element was deprecated in HTML 4.01, I know that XHTML script does not allow it. The script tag here: http://www.w3.org/TR/xhtml1/#h-4.8 does not even show it.

    Eric

Page 1 of 1 (2 items)