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

TypeError: k.replace is not a function Source File:

1 Answer 435 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bylar
Top achievements
Rank 1
Bylar asked on 26 Aug 2013, 01:01 PM
Hi,

I am using the code
 window.radopen(encodeURI('<%=ResolveUrl("~/")%>UI/Query.aspx?txtToFill=' + hdnSearchText + "&Name=" + document.getElementById(hdnName1).value + "&btnUploadFile=" + btnQuery), 'NavigationWindow');

to open a window as a rad window popup. Inside this window we have added a custom close button to close the window.
            function getRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow;
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                return oWindow;
            }
            function closeWindow() {
                getRadWindow().close();
            }

But I am getting an error :

Timestamp: 8/26/2013 5:48:47 PM
Error: TypeError: k.replace is not a function
Source File: http://localhost:1981/Telerik.Web.UI.WebResource.axd?

_TSM_HiddenField_=ctl00_radScriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ac9cbdec3-c810-4e87-846c-fb25a7c08002%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.2.717.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a0507d587-20ad-4e22-b866-76bd3eaee2df%3a16e4e7cd%3af7645509%3a24ee1bba%3a92fe8ea0%3af46195d3%3afa31b949%3a874f8ea2%3a19620875%3a490a9d4e%3abd8f85e4%3a11a04f7e%3a1e771326%3aa7e79140%3a2003d0b8%3aaa288e2d%3ae524c98b%3a596d7b53%3bAjaxControlToolkit%2c+Version%3d1.0.20229.18969%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3acf3d7884-84c8-47a3-b2bf-68e7ae538755%3ab14bb7d5%3a13f47f54%3a1d056c78%3adc2d6e36%3aa3e10fa2%3a701e375f%3a3c55b13e%3ade51bc8f%3aa4313c7a
Line: 5545



I don't know what is wrong in this case.
Thanks in Advance.

Thanks,
Bylar

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 27 Aug 2013, 06:08 AM
Hi Bylar,

I see that the scripts are loaded from the AjaxControlToolkit assembly (it is present in the path to the combined scripts). This is not a known issue with RadWindow, so at this point I can suggest the following:
- try replacing the RadScriptManager with the asp ScriptManager or the toolkit's script manager to see if this makes a difference
- since it will, most likely, have no effect, try removing the AjaxControlToolkit assembly from the project (even deleting the file) because it is known to change some of the MS AJAX scripts which can break something that relies on them, like our controls

 Other things you can try are:
- using the latest AjaxControlToolkit assembly to see if this helps
- attempting to force the correct AJAX scripts by following this thread or simply referencing the MS AJAX scripts from their CDN through URLs.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
General Discussions
Asked by
Bylar
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or