is there a way to make 2 simultaneous calls from the AJAX to the server and
they be processed simultaneous too?? because my problem is i can't wait one
method finished to start the other.
thanks.
-- Index.aspx
<HEAD>
...
<body onload="Call2Methods()">
</body>
</HTML>
-- Javascript.js
function Call2Methods()
{
Method1();
Method2();
}
function Method1()
{
AjaxNET.WebForm1.Method1(cbMethod1);
}
function Method2()
{
AjaxNET.WebForm1.Method2(cbMethod2);
}
-- index.cs
*** Just a example!!!
[AjaxPro.AjaxMethod()]
public string Method1()
{
int QtdTempo = 0;
while (QtdTempo++ < 20)
{
System.Threading.Thread.Sleep(1000);
}
return "ok";
}
[AjaxPro.AjaxMethod()]
public string Method2()
{
int QtdTempo = 0;
while (QtdTempo++ < 20)
{
System.Threading.Thread.Sleep(1000);
}
return "ok";
}
Luciano Sampaio Martins de Souza
Ciência da Computação - UNIT
--~--~---------~--~----~------------~-------~--~----~
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/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
The open source project is now located at
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---