NEED TO TEST AN AJAX TIMEOUT CONDITION

marcel ethan

Total Post:105

Points:735
Posted by  marcel ethan
AJAX 
 2109  View(s)
Ratings:
Rate this:

Hi MindStickians!

As the title mentions, I have a timeout callback handler on an Ajax call, and I want to be able to test that condition but nothing is coming to mind

immediately on ways I can force my application to hit that state, any suggestions?

Thanks in advance 

  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: Need to test an ajax timeout condition

    Hi Marcel!

    If you want to have the server-side code take a long time and you are using .NET, place below line od code in the method you call server-side:

    System.Threading.Thread.Sleep(timeoutMilliseconds);

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!