This is a migrated thread and some comments may be shown as answers.

Something times out leaving blank page

1 Answer 10 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 27 Nov 2018, 08:30 AM

Hi,

I've been at this one for ages. 

I have a tree view which when a node is clicked, gets the data from the node.value and shows it. (ajaxed)
I've tried everything to do with ajax timeout settings in script manager and such but it still happens.

What could I test for when the node is clicked, that might throw an error? Then I can redirect.

Cheers,

Jon

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 28 Nov 2018, 05:17 PM
Hello Jon,

You can monitor the network requests and see whether they timeout or return with an error. The most common reason for the loading sign to remain visible is a server error that propagates to the client so you get a JS error instead of the standard events.

You can use the window.onerror handler to capture any errors thrown: 

Exceptions from the server that are thrown during partial rendering are captured by the MS AJAX framework and come up as client-side exceptions in the browser console, but the status code of the request is still 200.


Regards,
Marin Bratanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Ajax
Asked by
Jon
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or