I have a piece of code in my JSP that is like so:
<a href="javascript:window.open('viewIcons.action','Browse Icons','height=300,width=600,resizable=yes,toolbar=no,menubar=no,location=no')">
the viewIcons.action is a Struts action. If I use this in a regular href, e.g. href="viewIcons.action", it works in every browser. but when i call a javascript to open a new window to this location, Firefox and Camino craps out. Safari works, and presumably IE (haven't tested on IE yet). The error is below:
uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMJSWindow.open]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: javascript:window.open('viewIcons.action','Browse Icons','height=200,width=500,resizable=yes,toolbar=no,menubar=no,location=no') :: <TOP_LEVEL> :: line 1" data: no]
Never seen this NS_ERROR_FAILURE... what does that mean...?