Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > Ajax error did not display Telerik Window

Not answered Ajax error did not display Telerik Window

Feed from this thread
  • USMAN avatar

    Posted on Feb 1, 2012 (permalink)

    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? 

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > Ajax error did not display Telerik Window