We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

NS_ERROR_FAILURE in Firefox

Thread ID:

Created:

Updated:

Platform:

Replies:

141917 Jan 10,2019 11:12 AM UTC Jan 11,2019 08:59 AM UTC ASP.NET MVC - EJ 2 1
loading
Tags: Diagram
Carsten Buchmann
Asked On January 10, 2019 11:12 AM UTC

Hi,
I got the following error only in Firefox:


And thats my piece of code:
$("#tudiagram").ejDiagram({
            width: (_mainWidth * _maxRectangles) + _widthOffset + 25, /*"1700px",*/
            height: "626px",
            constraints: ej.datavisualization.Diagram.DiagramConstraints.Default & ~ej.datavisualization.Diagram.DiagramConstraints.Zoomable & ~ej.datavisualization.Diagram.DiagramConstraints.Resizable,
            nodes: nodes,
            tooltip: null,
            nodeCollectionChange: function (args) { onNodeChanged(args); },
            drag: function (args) {

                //console.log("drag:");
                //console.log(args);

                //console.log(window.mouseXPos);

                //console.log("New: " + args.newValue.offsetX + " Old: " + args.oldValue.offsetX);


                console.log(args.dragState);
                var diag = this;

                if (args.dragState == 'starting') {
                    
                    dragablestartdata[args.element.name] = args.oldValue;

                } else if (args.dragState == 'completed') {
                    
                    setNode(args.element, args.element.name, args.newValue, diag);                    
                } else {
                    
                    var placedrows = getplacedrows(args.newValue);
                    var existingbundleshere = null;
                    if (args.element.children[0].addInfo.type == 'Divider') {
                        existingbundleshere = getplacedDividers(args.element.name, args.newValue);
                    }
                    else {
                        existingbundleshere = getplacedbundles(args.element.name, args.newValue);
                    }
                    
                    //console.log("Moving args.element: ", args.element)
                    if (existingbundleshere.length == 0 && validehoveredrows(placedrows, args.element.addInfo.neededPlaceholder)) {
                        $.each(placedrows,
                            function (key, item) {
                                diag.updateNode(item.name, { fillColor: hoveredrowfill });
                                //console.log("Grid hovered");
                        });
                    }
                }

                var offsX = args.element.offsetX;
                var width = args.element.children[0].width;
                var boundaries = $('#tudiagram_canvas_svgParent')[0].getBoundingClientRect();

                var rowWidth = _unit.DimensionLength * _mainWidth + _widthOffset;

                if (offsX - (width / 2) < _widthOffset) {
                    offsX = _widthOffset + (width / 2);
                }
                else {
                    var offsXInitial = offsX - (width / 2);
                    /* Divider */
                    if (width < _mainWidth) {
                        //offsX = (Math.round(offsXInitial / 100) * 100) + (width / 2);

                        offsXInitial = window.mouseXPos - boundaries.left;
                        offsX = (Math.round(offsXInitial / 100) * 100) + (width / 2);
                    }
                    else {
                        offsX = (Math.floor(offsXInitial / 100) * 100) + (width / 2);
                    }
                }
                //console.log("offsX danach:" + offsX);

                if (offsX + (width / 2) > rowWidth && offsX > 0) {
                    this.updateNode(args.element.name,
                        {
                            offsetX: dragablestartdata[args.element.name].offsetX,
                            offsetY: dragablestartdata[args.element.name].offsetY
                        });
                    return;
                }

                //console.log("Offset: ", offsX);
                //console.log("args.element: ", args.element);

                diagram.updateNode(args.element.name, { offsetX: offsX });

                AllDividerToFront();

            },
            scrollChange: function (args) {
                $("#tudiagram_canvas_svgParent").css("left", "0px");

                $.each($('.remove-row-button'), function( key, value ) {
                    var top = value.offsetTop;
                    $(value).css("top", (top - (args.newValues.verticalOffset - args.oldValues.verticalOffset)) + "px");
                });
            },
            itemClick: function(args) {
                //console.log("itemClick:");
                //console.log(args);
                //console.log("------------------------");
            },
            doubleClick: function (args) { onNodeDoubleClick(args); },
            snapSettings: {
                enableSnapToObject: false,
                horizontalGridLines: {
                    snapInterval: [101,152]
                },
                verticalGridLines: {
                    snapInterval: [100]
                }
            },
            pageSettings: {
                scrollLimit: "limited",
                pageWidth: (_mainWidth * _maxRectangles) + _widthOffset,
                pageHeight: 1500,
            },
            rulerSettings: {
                showRulers: true,
                verticalRuler: {
                    interval: 5,
                    segmentWidth: 100
                },
                horizontalRuler: {
                    segmentWidth: 100,
                    interval: 5
                }
            },
        });


Ramya Thirugnanam [Syncfusion]
Replied On January 11, 2019 08:59 AM UTC

Hi Carsten, 
 
We have created a sample based on the provided code example. We have validated the sample  in Firefox and it has been run well in our side without getting any error in Firefox version 63.0.3. So, we have shared the sample in below stackblitz link.   
 
 
Could you please modify the sample to replicate the reported issue? This will help us to proceed with the reported issue with Firefox. 
 
Regards, 
Ramya T 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;