P
Paul Reed
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_button;
if (type != "undefined") {
type = typeof parent.ory_button.getTreePath();
if (type != "undefined") {
thePath = parent.ory_button.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_button;
if (type != "undefined") {
type = typeof parent.ory_button.getTreePath();
if (type != "undefined") {
thePath = parent.ory_button.getTreePath();
}
}
document.write(thePath);