Hi,

see an online demo available at http://munich.schwarz-interactive.de/.

The first call needs about 7 seconds, timeout is configured at 10
seconds, so everything should be fine, the message will appear after 7
seconds.

The second call then will set the timeout first to 1 second, you will
get the onTimeout message after this second. If you click on <ok> it
will cancel the request, finished. If you click on <cancel> the
request will continue... and after one more second it will show this
dialog again,... and again,... until the 7 seconds on the server-side
method is finished.

The server-side method looks like below to simulate a long running operation:

   Thread.Sleep(7*1000);

What do you think?


Regards,
Michael




On 6/14/06, Michael Schwarz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I did some tests with the timeout feature in Ajax.NET Professional. In
> the current release the onLoading will not invoked if the requests is
> timed out, I have already fixed this in my source code, will publish
> this later.
>
> On thing I would like to change is the way timeout method is working.
> Currently it will cancel the request and call the onTimeout handler.
> This is not very nice if you want to wait longer for the request. So,
> what do you think about returning <true> in the onTimeout handler to
> cancel the request? If you want to leave the request running simple
> return <false>.
>
> --
> 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]
>


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