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

JavaScript error on ajax postback

6 Answers 200 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
GrZeCh
Top achievements
Rank 2
GrZeCh asked on 03 Nov 2008, 10:28 PM
Hello!

I'm facing JavaScript error when I'm making ajax postback.

Error:

Error: uncaught exception: [Exception... "Node cannot be inserted at the specified point in the hierarchy"  code: "3" nsresult: "0x80530003 (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)"  location: "http://WEBSITE/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-GB%3a3bbfe379-348b-450d-86a7-bb22e53c1978%3a52817a7d%3a67c678a8%3bTelerik.Web.UI%2c+Version%3d2008.3.1016.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-GB%3ad9b95411-03e4-4c33-81c7-6dbd12cc67c3%3a393f5085%3aa9723048%3aa3f85c94%3a39249aa4%3a34f9d57d%3a9703c1f0%3a665c7bcf%3a414de951%3a6f2bcae9%3a604faffd%3a34a10845%3aa444c1be Line: 4712"
Source file: http://WEBSITE/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-GB%3a3bbfe379-348b-450d-86a7-bb22e53c1978%3a52817a7d%3a67c678a8%3bTelerik.Web.UI%2c+Version%3d2008.3.1016.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-GB%3ad9b95411-03e4-4c33-81c7-6dbd12cc67c3%3a393f5085%3aa9723048%3aa3f85c94%3a39249aa4%3a34f9d57d%3a9703c1f0%3a665c7bcf%3a414de951%3a6f2bcae9%3a604faffd%3a34a10845%3aa444c1be 
Line: 6 

This is my ajaxmanager aspx code:
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="typesRadComboBox"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="typesRadComboBox" /> 
                    <telerik:AjaxUpdatedControl ControlID="calendarRadScheduler" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="calendarRadCalendar"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="calendarRadCalendar" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="calendarRadScheduler"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="calendarRadScheduler" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="30"
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
            style="border: 0px;" /> 
    </telerik:RadAjaxLoadingPanel> 

After first AJAX postback I'm losing RadScheduler CSS with images and RadAjaxLoadingPanel is showing only once (probably because JS error). I'm using latest Q3 beta controls. What else do You need to know?

Thanks

6 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 06 Nov 2008, 12:35 PM
Hi GrZeCh,

Based on the supplied information, it is hard to determine the cause of the error that you mentioned. If the issue persists, you can open a formal support ticket, and send us a small project, demonstrating the case, for further review.

Greetings,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
GrZeCh
Top achievements
Rank 2
answered on 10 Nov 2008, 09:35 PM
I've found another topic related to this issue:

http://www.telerik.com/community/forums/aspnet/general-discussions/firefox-and-node-cannot-be-inserted-a-the-specified-point.aspx

When I set EnablePageHeadUpdate to false JS error is not appearing anymore. What this mean? Where could be error?
0
Yavor
Telerik team
answered on 11 Nov 2008, 08:35 AM
Hello GrZeCh,

This is actually a specific case for the control, and to work-around it, you need to disable the page head updates. This should eliminate the issue at your end.

Sincerely yours,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jeff Wardwell
Top achievements
Rank 1
answered on 05 Mar 2009, 09:14 PM
I'm not using a RadAjaxPanel.  So, there is nothing to add EnablePageHeadUpdate="false" to.  I looked for the property in the master page's RadScriptManager, but that control doesn't have the property. 

I'm just trying to hit a web service using the YUI library.  The call to the web service is being made from a page whose master page contains a RadScriptManager.  The code related to the YUI call executes fine.  I simply add the return value from the service to update the content of a div using DOM manipulation code.

I am using the web service to get an html string that I want to add to the DOM.  Why is there a Telerik error involved?
0
Yavor
Telerik team
answered on 10 Mar 2009, 08:27 AM
Hello Jeff,

In such a setup, there may be another problem causing the error. If the issue persists, you can open a formal support ticket, and send us a small working project, demonstrating the problem. We will debug it locally, and get back to you with additional information.

All the best,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jeff Wardwell
Top achievements
Rank 1
answered on 10 Mar 2009, 01:51 PM
@Yavor

Sure enough, the problem was not with any Telerik-related component.  The first problem had to do with line endings (\n, \r) and the second with badly formed html.
Tags
Ajax
Asked by
GrZeCh
Top achievements
Rank 2
Answers by
Yavor
Telerik team
GrZeCh
Top achievements
Rank 2
Jeff Wardwell
Top achievements
Rank 1
Share this question
or