Fixing yui menu.js error in IE (Internet Explorer)
While developing an application for a client that employs the YUI (Yahoo User Interface - http://developer.yahoo.com/yui/) tools, I found that the menu I built that runs in Firefox caused an IE script error.
After going through the mission of trying to find how to debug IE javascript (because IE lacks a decent built in debugger), I eventually got Visual Studio to debug the error.
The actual error returned is "Error: Object required".
To fix this, take the following steps.
- Open yui/build/menu/menu.js
- Goto line 1482 (or the line that says while((oNode = oNode.nextSibling));
- change the line to: while(oNode && (oNode = oNode.nextSibling));
Labels: dev
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home