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

[Solved] Ajax error did not display Telerik Window

0 Answers 108 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
USMAN
Top achievements
Rank 2
USMAN asked on 01 Feb 2012, 03:09 PM
Hi,
I have an Ajax bound grid, and if there is any error occurs it will return with Ajax error and open a Telerik window with message.

It works on local machine.

But When I deploy the application to IIS 6 on another machine, the Ajax error with Telerik window didn't open.

I have seen that when I get the 

var xhr = e.XMLHttpRequest;

it is "unspecified" 

Complete script
function onError(e) {
    //the current XMLHttpRequest object
        var xhr = e.XMLHttpRequest;
         alert(xhr.status);
        alert(xhr.responseText);
 
    if (xhr.status == "2601") {
        var windowElement = $('#Window');
        windowElement.data('tWindow').title("Error").content("Description = This data already exists, it must be
 
unique. <br/> <div align='right'> <button id='btnClose' class='t-button' type='button'
 
onclick='javascript:CloseWindow();' >OK</button> </div>").center().open();
    }
 
}

e.XMLHttpRequest  get value on local machine, but it is not working on Server.


can you please guide me for this?
Tags
Window
Asked by
USMAN
Top achievements
Rank 2
Share this question
or