JavaScript error for IE only

6 posts, 1 answers
  1. b33fy
    b33fy avatar
    3 posts
    Member since:
    Nov 2008

    Posted 30 Nov 2010 Link to this post

    Hey Guys,

    Hope someone can assist.  I am experiencing a weird issue.  I recently deployed some changes to our Staging Server.
    In my Local Development Environment, there are no issues.  Tested on IE8, Firefox and Chrome

    When I view the same site on our STAGING server, firefox and chrome no issue
    but ...
    on IE8 returns a JavaScript error

    JavaScript Error
    Message: '2.offsetHeight' is null or not an object
    Line: 12023
    Char: 1
    Code: 0
    URI: http://<server_name>/aspx/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions .....

    So after checking all the deployment files were done successfully I then debugged the JavaScript on while running the STAGING version and found that for IE8 in the following code snippet
    "if(($telerik.isIE6||$telerik.isIE7||$telerik.quirksMode)&&(i[0].style.height!="")){var j=d("tr > td > div",k);"

    $telerik,isIE7 was returning true.  Why is it returning true for IE8? no idea.  I have tried this one 2 other PC's in the office, same error. 

    I do not think it is a deployment issue otherwise it would not work perfectly on FF or Chrome.
    I don't think It is an issue specific to IE8 because it works perfectly on IE8 running my Local Devt' site, only STAGING has the issue.

    When I debugged the JavaScript it was the Telerik.Web.UI.RadListBox._preInitialize which was calling the code with the error so I included a snippet of the ListBox in the Panel.

    <telerik:RadPanelItem runat="server" Text="Manager Filter (0 Items selected)" Expanded="false" Value="ManagerfilterPanel" Visible="false"><br>                    <ContentTemplate><br>                        <div class="item"><br>                        Search:&nbsp;<telerik:RadComboBox runat="server" ID="cboManagerSearch" ShowToggleImage="false" Width="330" Filter="Contains" DropDownWidth="330" EnableScreenBoundaryDetection="true" NoWrap="true" OnSelectedIndexChanged="cboManager_SelectedIndexChanged" AutoPostBack="true"></telerik:RadComboBox><br /><br>                        <telerik:RadListBox runat="server" AllowTransferDuplicates="false" Width="400px"<br>                            Height="265px" AllowTransferOnDoubleClick="true" EnableDragAndDrop="true" Font-Names="Calibri" EnableMarkMatches="true"<br>                            ID="lstSourceManager" AllowTransfer="true" TransferToID="lstPickedManager" <br>                            SelectionMode="Multiple" Skin="Windows7" OnClientTransferred="OnClientTransferredManager" Sort="Ascending"><br>                            <HeaderTemplate><br>                                <div style=" margin: 0px 0px 0px 10px; padding: 5px 0px 0px 0px; height: 20px; vertical-align: middle;">Managers</div><br>                            </HeaderTemplate><br>                        </telerik:RadListBox><br>                        <telerik:RadListBox runat="server" Font-Names="Calibri" ID="lstPickedManager" Height="265px" EnableMarkMatches="true"<br>                            Width="380px" AllowTransferDuplicates="false" AllowTransferOnDoubleClick="true" PersistClientChanges="true"<br>                            EnableDragAndDrop="true" SelectionMode="Multiple" Skin="Default" Sort="Ascending"><br>                            <HeaderTemplate><br>                                <div style=" margin: 0px 0px 0px 10px; padding: 5px 0px 0px 0px; height: 20px; vertical-align: middle;">Selected Managers</div><br>                            </HeaderTemplate><br>                        </telerik:RadListBox></div><br>                    </ContentTemplate><br>                </telerik:RadPanelItem>

    Any ideas? Any suggestions would be much appreciated.

    Thanks

    B
  2. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 30 Nov 2010 Link to this post

    Hello,

    This is a known issue which is already fixed in the latest release, please download Q3 2010 and try with it.

    Kind regards,
    Yana
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. b33fy
    b33fy avatar
    3 posts
    Member since:
    Nov 2008

    Posted 30 Nov 2010 Link to this post

    Hi Yana,

    Thank you for the response.  I am awaiting to try it out but just a quick question that just does not make sense to me.

    Q: If there was an issue with the Telerik Controls then why was in fine for me when browsing to my local development environment?

    Same Machine, same browser (IE8)

    http://localhost/... <-- works
    http://staging.domain.com/ <-- error occurs

    The only thing that makes sense is Proxy or Security though I have turned off the Proxy and made the Staging site a Trusted Site.

    Thanks

    B

  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 03 Dec 2010 Link to this post

    Hello,

    We had a bug which causes exactly the same error -  it was reproducible in IE8 Compatibility Mode and IE7. So please check whether the browser is not in Compatibility Mode or IE mode, in this case $telerik.isIE7 can return true.

    Greetings,
    Yana
    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.
  6. Adam
    Adam avatar
    1 posts
    Member since:
    May 2012

    Posted 25 May 2012 Link to this post

    Hi there

    I'm getting a weird issue in  IE only (firefox OK) with regards the list box - when it tries to open a page with a list box on it I get 'object doesn't support this property or method' (see attached for full details) and if I click 'do you want to continue running scripts on this page the page appears but the drop downs are not active - i.e by clicking the drop down icon I don't get any results

    We're trying to move our applications from an IIS6 windows 2003 server to a Windows 2008 server 64 bit with IIS7  and it only seems to happen in IE on the new (Windows 2008 server) - does anyone know how to fix this - it worked OK on the IIS6 2003 server

    thanks in advance

    Adam
  7. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 30 May 2012 Link to this post

    Hi Adam,

    I am afraid that I cannot determine what is the error from the provided screenshot. Could please give me more details about it? Are there errors on the page If you remove our controls? Try to debug the page with the browser's developer tool and find the object and its method which is not supported.

    All the best,
    Peter Filipov
    the Telerik team
    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 their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017