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

error in firebug dragging dock

4 Answers 85 Views
Dock
This is a migrated thread and some comments may be shown as answers.
gnomo
Top achievements
Rank 1
gnomo asked on 13 Sep 2007, 01:42 PM

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]

4 Answers, 1 is accepted

Sort by
0
Petio Petkov
Telerik team
answered on 16 Sep 2007, 01:56 PM
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
0
lchesnais
Top achievements
Rank 1
answered on 24 Dec 2007, 07:49 AM
Hello,

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

BR, Laurent
0
Petya
Telerik team
answered on 02 Jan 2008, 02:43 PM
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
0
Accepted
lchesnais
Top achievements
Rank 1
answered on 03 Jan 2008, 09:39 AM
Thank you Petya.
Works perfect for me.

BR, Laurent
Tags
Dock
Asked by
gnomo
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
lchesnais
Top achievements
Rank 1
Petya
Telerik team
Share this question
or