error in firebug dragging dock

5 posts, 1 answers
  1. gnomo
    gnomo avatar
    6 posts
    Member since:
    Jul 2007

    Posted 13 Sep 2007 Link to this post


    In your portal page sample in http://www.telerik.com/DEMOS/ASPNET/Prometheus/Dock/Examples/Default/DefaultCS.aspx
    an error occours when dragging a dock. This only happens in Firefox with firebug installed and only if I start the dragging movement over the title.
    In other words, if the mousedown movement to initiate the drag is made over the title of the dock, when I drop the dock elsewhere an error occours, but, if the mousedown is made in an empty area of the Titlebar then everything is ok.
    The error message is shown below.

    [Exception... "Could not convert JavaScript argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://www.telerik.com/demos/aspnet/Prometheus/ScriptResource.axd?d=rD5r3VBiCltpZRpZoTgOhaR47Vl6WggNPnMijesWGG58iGLVJnvM7eBFdXkQBOp_0&t=633184735740000000 :: anonymous :: line 5" data: no]

  2. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 16 Sep 2007 Link to this post

    Hi gnomo,

    We are aware for this issue and we will do our best to fix it soon. Please accept our apologies for the temporary inconvenience.




    Best wishes,
    Petio Petkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. lchesnais
    lchesnais avatar
    39 posts
    Member since:
    Feb 2007

    Posted 24 Dec 2007 Link to this post

    Hello,

    Do you have any update on this subject? The issue still occurs.

    BR, Laurent
  4. Petya
    Admin
    Petya avatar
    869 posts

    Posted 02 Jan 2008 Link to this post

    Hello lchesnais,

    As far as we investigated the error it is thrown by the MS AJAX framework because it is trying to get the style of a non element node. To workaround this problem we redefined the Sys.UI.DomElement._getCurrentStyle method by just adding one extra line as compared to the original one to perform a check whether the element whose style is to be taken is of element node type:

    <script type="text/javascript">            
      
                Sys.UI.DomElement._getCurrentStyle = function Sys$UI$DomElement$_getCurrentStyle(element)  
                {  
                    //TELERIK - do not obtain style for text or other non-HTML elements  
                    if (element.nodeType != 1) return;  
                    var w = (element.ownerDocument ? element.ownerDocument : element.documentElement).defaultView;  
                    return ((w && (element !== w) && w.getComputedStyle) ? w.getComputedStyle(element, null) : element.style);  
                }           
            </script> 

    Please, add this script to your page and let us know if the problem persists.

    Regards,
    Petya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Answer
    lchesnais
    lchesnais avatar
    39 posts
    Member since:
    Feb 2007

    Posted 03 Jan 2008 Link to this post

    Thank you Petya.
    Works perfect for me.

    BR, Laurent
Back to Top