1
Answer

JavaScript Error : is null or not an object

sumit jadhav

sumit jadhav

13y
3.1k
1
Ajax Page method working fine In other project. But when i am going to  implement it in my code and i add 

<asp:ScriptManager ID="ScriptManager1" EnablePageMethods ="true" runat="server">
    </asp:ScriptManager>

Its giving me errror  'busy' is null or not an object

 Here is my  HTML  code
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onunload="Leave()">
    <form id="Form1" method="post" runat="server" style="height: 100; width: 100;">
 <div>
        <asp:ScriptManager EnablePageMethods="true" ID="ScriptManager1" runat="server" />
    </div>
    <div id="div1">
    </div>
    <input id="otherUser" type="hidden" name="otherUser" runat="server" />

    <script language="JavaScript" src="js/rs.js"></script>

    <script type="text/javascript" language="JavaScript">
function button_clicked()
{
 RS.Execute("Chat1.aspx", "SendMessage",document.Form1.txtMsg.value,document.Form1.otherUser.value, callback, errorCallback);
document.Form1.txtMsg.value="";
document.Form1.txt.scrollIntoView("true");
PageMethods.MyFirstParameterPageMethod(document.Form1.txtMsg.value,onSucceeded,onFailed);
}
function onSucceeded(result,userContext,methodName)
{
  $get('div1').innerHTML=result;
}
function onFailed(error,userContext,methodName)
{
  alert("An error occurred")
}

</script>
</form>
</body>

Help Me
Answers (1)