Nevron Forum

NDiagramCallbackService JavaScript object not supported under Internet Explorer 6

https://www.nevron.com/Forum/Topic2730.aspx

By Stephen Tunney - Wednesday, November 4, 2009

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?

By Pavel Vladov - Friday, November 20, 2009

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