it better that you put some delay befor calling the second function.
it will work fine

 
On 4/27/06, jrlichina <[EMAIL PROTECTED]> wrote:

I have the lastest version of AjaxPro 6.4.26.2.  On the client side I
make some calls like the following:

function FuncTwo()
{
   some code here
   bool bVal = MyNamespace.Page.DoSomething(p1,p2);
   return bVal;
}

function FuncOne()
{
  if(FuncTwo())
  {
      var sMsg = MyNamespace.Page.GetMessageText();
      alert(sMsg)
  }
}

When I call FuncOne(),  the first Ajax call works(FuncTwo) but when it
gets to the line
MyNamespace.Page.GetMessageText (); it fails with the following error.

Microsoft Jscript runtime error:
MyNamespace.Page is null or not an object

I was under the impression this problem was fixed, I also do not want
to pepper my code with window.setTimeout() calls.  On a somewaht
unrelated topic I have not updated my web.config file to match/include
some of the new sections Michael has created.  Could this be a
contributing factor?






--~--~---------~--~----~------------~-------~--~----~
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