OdinaSpb / jstree

Automatically exported from code.google.com/p/jstree
0 stars 0 forks source link

M issue with jstree in IE 8/9 - Tree does not load #991

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use XML data to load a tree

What is the expected output? What do you see instead?
Fully loaded tree

What version of the product are you using? On what browser?
See below

Please provide any additional information below.
I have a major issue with jstree in IE 8/9
The loading message continually displays when trying to 
load a tree. The treee does not load.
I am loading xml tree data from a file

using jquery v1.6.1  (tried using lower version as well)
using jsTree 1.0-rc3

The tree loads in FireFox/Chrome etc....
The tree does not load in IE9
The tree does load in IE 8 but I get the following error
Line: 17
Error: Object doesn't support property or method 'toLowerCase'
when selecting a node

Really could use a quick fix as a customer is try to your the website

Original issue reported on code.google.com by dbi...@digitalbungalow.com on 10 Jan 2012 at 6:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Also, here is the code for loading my tree.
   $("#mytree").jstree({
                "core": { "initially_open": ["root"] },
                "xml_data": {
                    "ajax": { "url": "_docs/menubuilder.xml" },
                    "xsl": "nest"
                },                               

                "plugins": ["themes", "xml_data", "ui", "crrm", "dnd"]
            });

Original comment by dbi...@digitalbungalow.com on 10 Jan 2012 at 6:56

GoogleCodeExporter commented 9 years ago
Yea!  I implemented the following solution found in one of the threads

$.vakata.xslt = function (xml, xsl, callback) {
        var rs = "", xm, xs, processor, support;
        if(window.ActiveXObject) {      
            var xslt = new ActiveXObject("Msxml2.XSLTemplate");
            var xmlDoc = new ActiveXObject("Msxml2.DOMDocument");
            var xslDoc = new ActiveXObject("Msxml2.FreeThreadedDOMDocument");
            xmlDoc.loadXML(xml);
            xslDoc.loadXML(xsl);
            xslt.stylesheet = xslDoc;
            var xslProc = xslt.createProcessor();
            xslProc.input = xmlDoc;
            xslProc.transform();
            callback.call(null, xslProc.output);

            return true;
        }

This fixed the IE8 issue but still get a 
Error: Object doesn't support property or method 'toLowerCase'
when mousing over tree

Original comment by dbi...@digitalbungalow.com on 10 Jan 2012 at 7:06

GoogleCodeExporter commented 9 years ago
Okay, that last IE8 issue in with my code.  All set... disrecard

Original comment by dbi...@digitalbungalow.com on 10 Jan 2012 at 7:13