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

Win7 64 bit Javascript errors

2 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
YAVUZ
Top achievements
Rank 1
YAVUZ asked on 02 Dec 2010, 12:46 PM
Hi,

I upgrade my os WinXP to  Win7 64 bit but when debug my web application gives some javascript errors. For example; I have to put my web page below this code for RadComboBox;
Telerik.Web.UI.RadComboBox.prototype._removeDropDown = function() {
            var slide = this.get_dropDownElement().parentNode;
            slide.parentNode.removeChild(slide);
  
            if (this._disposeChildElements)
                $telerik.disposeElement(slide);
  
            if (!$telerik.isSafari)
                slide.outerHTML = null;
            this._dropDownElement = null;
        };

But this code block is not run on RadTabstrip. When I click another tab which has no RadCombobox that gives an error. Also I get javascript errors in  some pages redirecting. How to avoid this errors ?

2 Answers, 1 is accepted

Sort by
0
Accepted
Simon
Telerik team
answered on 02 Dec 2010, 03:09 PM
Hello YAVUZ,

Please modify the code as shown below to avoid the error when RadComboBox is missing from the page:
if (Telerik.Web.UI.RadComboBox)
    Telerik.Web.UI.RadComboBox.prototype._removeDropDown = function() {
        var slide = this.get_dropDownElement().parentNode;
        slide.parentNode.removeChild(slide);
 
        if (this._disposeChildElements)
            $telerik.disposeElement(slide);
 
        if (!$telerik.isSafari)
            slide.outerHTML = null;
        this._dropDownElement = null;
    };

I hope this helps.

Greetings,
Simon
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
YAVUZ
Top achievements
Rank 1
answered on 02 Dec 2010, 04:28 PM
Thank you for reply. I solved my problem...
I solved other errors about Javascript runtime error. If I remove the below line

<%

@ OutputCache Duration="1" VaryByParam="none" %>

 


I dont get Javascript errors. I write this code;

<%

@ OutputCache Location="none" %>

 

Tags
General Discussions
Asked by
YAVUZ
Top achievements
Rank 1
Answers by
Simon
Telerik team
YAVUZ
Top achievements
Rank 1
Share this question
or