Profile Picture

NDiagramCallbackService JavaScript object not supported under Internet Explorer 6

Posted By Stephen Tunney 15 Years Ago

NDiagramCallbackService JavaScript object not supported under Internet...

Author
Message
Stephen Tunney
Posted 15 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 15 Years Ago
Posts: 2, Visits: 1

I am using the following code (cut from the Nevron examples) to get the callback service for a NDrawingDocument object.

var cs = NDiagramCallbackService.GetCallbackService('<%=NDrawingView1.ClientID%>');

This code works perfectly well in FireFox (3.5.4) as well as IE 7 and 8.

I get an error in IE6 however, indicating that the variable 'cs' has returned the following error:

Object does not support the property or method.

Here is the rendered JavaScript from within IE:

    function Pan(direction)
    {
        if(typeof(NDiagramCallbackService) == "undefined")
            return;
       
        //var zoomSelect = document.getElementById("zoomSelect");
           
        var cs = NDiagramCallbackService.GetCallbackService('ctl00_ctl00_phForContent_phForContent_diagramView1_NDrawingView1');
       
        var attributes = new Array();
        attributes["direction"] = direction;
        /*if(null != cs)*/
            cs.InvokeCustomCommand("pan", attributes);
    }

Does Nevron Diagram .NET for the Web currently support Internet Explorer 6?  If not, are there any workarounds that I might be able to easily implement?



Pavel Vladov
Posted 15 Years Ago
View Quick Profile
Forum Member

Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)Forum Member (34 reputation)

Group: Forum Members
Last Active: 7 Years Ago
Posts: 33, Visits: 2
Hi Stephen, IE 6 is an old browser and lacks support for lots of the today's web standards. But yes, it is supported by Nevron Diagram for .NET. In the case you've specified try setting the variable as follows:

var cs = NDiagramCallbackService.GetCallbackService('ctl05_NDrawingView1');

I hope this solves the problem.

Cheers,
Pavel



Similar Topics


Reading This Topic