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

Master/Content RadAjaxManager - IE Error

1 Answer 34 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 16 Feb 2011, 08:07 PM
JavaScript on Content Page:
function onRequestStart(sender, args) {
    currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");
    currentUpdatedControl = "<%= rightPanel.ClientID %>";
    //show the loading panel over the updated control
    currentLoadingPanel.show(currentUpdatedControl);
}
 
function onResponseEnd() {
    //hide the loading panel and clean up the global variables
    if (currentLoadingPanel != null)
        currentLoadingPanel.hide(currentUpdatedControl);
    currentUpdatedControl = null;
    currentLoadingPanel = null;
}
 
function InitiateAsyncResults(argument) {
    var m = $find("<%=RadAjaxManager.GetCurrent(Page).ClientID %>");
    m.ajaxRequest(argument);
    return false;
}

Page Load on Content Page
RadAjaxManager manager = RadAjaxManager.GetCurrent(Page);
manager.AjaxSettings.AddAjaxSetting(manager, rightPanel);
manager.ClientEvents.OnRequestStart = "onRequestStart";
manager.ClientEvents.OnResponseEnd = "onResponseEnd";
manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(manager_AjaxRequest);

Working great in Firefox, but is throwing an error in IE (error below).  I've added alerts into the JavaScript, to make sure it's finding the RadAjaxManager and the other controls and it is.  Again it's working fine in Firefox.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Wed, 16 Feb 2011 19:03:16 UTC


Message: Unknown runtime error
Line: 15
Char: 34921
Code: 0
URI: http://localhost:4445/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a9506cff2-3a86-46c5-b869-6ba1478f3c27%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a24ee1bba%3af46195d3%3a1e771326%3aaa288e2d%3a19620875%3a874f8ea2%3a490a9d4e%3abd8f85e4

Any help or ideas would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 22 Feb 2011, 11:37 AM
Hello Justin,

I made a sample site using the provided code. Here the RadAjaxLoadingPanel1 is properly shown when performing ajax requests. Also I do not see any error in IE.

Could you give us more details on your project? Or if this is not possible in public, you can open a formal support ticket and send us your project that we can debug locally and see why you get the mentioned error.

Best wishes,
Vasil
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Ajax
Asked by
Justin
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or