Hello,
I have a function that runs at load time and throws a an "Object Doesn't
Support This Propertiy or Method" jscript error.
The offending line is "if (type != "undefined" ) ". If I change the check to
"type != """...I get no error...any ideas?
var thePath = "";
var type = ""
var type = typeof parent.ory_butt on;
if (type != "undefined" ) {
type = typeof parent.ory_butt on.getTreePath( );
if (type != "undefined" ) {
thePath = parent.ory_butt on.getTreePath( );
}
}
document.write( thePath);
I have a function that runs at load time and throws a an "Object Doesn't
Support This Propertiy or Method" jscript error.
The offending line is "if (type != "undefined" ) ". If I change the check to
"type != """...I get no error...any ideas?
var thePath = "";
var type = ""
var type = typeof parent.ory_butt on;
if (type != "undefined" ) {
type = typeof parent.ory_butt on.getTreePath( );
if (type != "undefined" ) {
thePath = parent.ory_butt on.getTreePath( );
}
}
document.write( thePath);
Comment