My call back functions are not working. I did a test and debugged It,
and the App is making its call to the server, but when it retunes to
the client it never runs the JavaScript. I put alerts in the callback
which never get fried.
This example of what I'm trying to do.

Clent code
function Submit1_onclick()
        {
           var Obj1 =document.getElementById("Txt1");
           var Str1 = Obj1.value;
           var Obj2 =document.getElementById("Txt2");
           var Str2 = Obj2.value;

           Log1_Log1.GetInfo(Str1,Str2,GetInfo_CallBack);
         }

        function GetInfo_CallBack(response)
                {
                 if (response.error != null)
                    {
                        alert(response.error);                                  
                            return;
                    }

                  var StrResponse = response.value;
                  if   (StrResponse == "info")
                       {
                        window.location="http://trs-
opsrpt2.mcilink.com/Global_Relay_Customer_Service/Reporting/Default.aspx";
                       }
                   else
                       {
                         if    (StrResponse == null)
                                {
                                 alert("error");
                                }
                         else
                               {
                                 alert("error from server");
                               }

                       }
                }

On the server said here is my example code

protected void Page_Load(object sender, EventArgs e)
    {
        AjaxPro.Utility.RegisterTypeForAjax(typeof(Log1_Log1));
        if (!IsPostBack)
        {
            // Do something;
        }
     }

    [AjaxPro.AjaxMethod]
    public string GetLoginInfo(string Str1, string Str2)
    {
        string StrResponse  = ClassName.Method(Str1, Str2);
        return StrResponse;
    }
Thanks
John Kennedy


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to