Loading scripts with ScriptMangerProxy not finding page controls since update to RC1

Last post 01-11-2007 4:28 PM by dimitrod. 1 replies.

Sort Posts:

  • Loading scripts with ScriptMangerProxy not finding page controls since update to RC1

    01-11-2007, 10:26 AM
    • Loading...
    • Osiris209
    • Joined on 02-11-2006, 4:19 PM
    • England
    • Posts 133

    I have recently updated my AJAX to RC1 and some pages that load js in the scriptmanagerproxy have stopped working....
    The problem is that when i try to get a text box it doesnt exist....

    $get("txtFirstLine").value

    ....this is not in a function its just in the file but the object is not found.
    It will work i wrap it in a function and call that function at the end of my aspx markup

    <script language="javascript" type="text/javascript">firstfunction();</script>

    ...its like the js is now all executed before the aspx page and controls on it are created.

    Is this is the case?
    Is there an event in the AJAX library that i can use to run this script once the page has been created?

    Thx
    Steve

  • Re: Loading scripts with ScriptMangerProxy not finding page controls since update to RC1

    01-11-2007, 4:28 PM
    • Loading...
    • dimitrod
    • Joined on 11-16-2005, 10:39 PM
    • Posts 27
    You can take a look at the Sys.Application.init and Sys.Application.load events in the doc.
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter