Javascript errors in IE5 for mac HTML_Tree
| From: | Bertrand Mansion | Date: | Thu, 20 Jun 2002 11:11:00 +0000 |
| Subject: | Javascript errors in IE5 for mac HTML_Tree | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7230@lists.php.net to get a copy of this message | ||
Hi Richard,
These two javascript functions throw errors on IE5 for Mac when I use the
javascript debugger. All in all, it just says that the object
(document.all(layerID)) doesn't support the load and save method.
function saveExpandedStatus(layerID, expanded)
{
document.all(layerID).setAttribute("expandedStatus", expanded);
document.all(layerID).save(layerID);
}
function loadExpandedStatus(layerID)
{
document.all(layerID).load(layerID);
if (val = document.all(layerID).getAttribute("expandedStatus")) {
return val;
} else {
return null;
}
}
Without the debugger, the script seems to work fine. (don't tell me to turn
off the debugger :-) )
Cheers,
Bertrand Mansion
Mamasam