Taking a shot in the dark...I know this is an old, unsupported version and control but I am so close to getting this huge application working in Google Chrome I just have to give it a shot. So right now the app works fine in IE but some nodes do NOT trigger a load event in Google Chrome; I dug into the JS files and I think I have a fix but no matter what I change, nothing changes. So I think this version uses the web resources and therefore the scripts are compiled in the DLLs right? So that is a dead end. BUT is there a way to disable the web resources or just point the app or the control to a script directory or a new ig_webtree.js file? I hope so.
Can anyone help?
What if the function has a parameter named node?
Well, the file contains of functions that just float in the global namespace, so it makes it even easier - just write a function with the same name, and if it appears after the original (like suggested if loaded on body onload event). Content of myFix.js:
function ig_getNodeTextElement() { if (node.element) { var i; for (i = 0; i < node.element.childNodes.length; i++) { var attrib = node.element.childNodes[i].getAttribute("igtxt"); if (attrib == "1") return node.element.childNodes[i]; } } return null; }
ig_webtree.txt
OK, maybe the object on top of the prototype chain is not called $IG.WebDataTree. I suggest that you place the debugger in the original function to see which is the object on top of the chain. You can also send me the compiled js file, which contains the function.
Ok...ok...maybe some progress here...now I get
VM278 myFix.js:7 Uncaught ReferenceError: $IG is not defined at myFix (VM16 myFix.js:7) at onload (Menu.aspx:101)