Every JavaScript call can look like this:

Namespace.Classname.Method(arg1, arg2, arg3, ... callback, context,
onLoading, onError, onTimeout, onStateChanged);

- arg1, arg2, arg3,... are the arguments used in you .NET method
- callback is the function that will be called when request is finished
- context can be every JavaScript value that can be accessed in
callback with res.context
- onLoading will be called twice, with <true> when request is started
and <false> when finished
- onError when there is any error like http status 404, 500,...
- onTimeout if request is slower then AjaxPro.timeoutPeriod (default 10 secs)
- onStateChanged if the internal XMLHttpRequest is switching status

Regards,
Michael




On 6/13/06, Liming <[EMAIL PROTECTED]> wrote:
>
> Thanks michael. I putted in window.onload and now it's there.
>
> I still can't find an example where can I put onTimeout call back, if
> anybody has a link or whatever, please let me know. thanks
>
> ...
>
> Site.index.GetSearchResult(searchterm,getResultListing);
>
> ...
>
> function getResultListing(res)
> {
> }
>
>
> >
>


-- 
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]

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