Re: oops javascript error
| From: | Harald Radi | Date: | Sat, 23 Feb 2002 13:38:55 +0000 |
| Subject: | Re: oops javascript error | ||
| Groups: | php.doc.chm | ||
| Request: | Send a blank email to php-doc-chm+get-29@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi goba,
this seems not to be ie6 related but an issue in general. i can hardly reproduce this but what i
suppose is the following:
the error occous in the following line:
...
<body onLoad="if(parent.nbuff) {parent.displayNotes()}">
...
.displayNotes() is not set but .nbuff is. the problem is, that onLoad isn't triggered after
loadig the usernotes but after loading the actual content, thus if loading of the usernotes takes
longer than loading of the content displayNotes() will not be defined when it gets called.
i can reproduce this most simple with a manual page that has many user notes (which also strengthens
my assumption) which take longer to load.
to catch this you should query the readyState property of parent.nbuff.body first and/or install a
onReadyStateChange listener for it. look at http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/readystate.asp
.
hope that helps
harald.
ps: nice done.
-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4
iQA/AwUBPHebbK1+myS9SSHxEQIR3QCdHJJ2AXEZd/bQoM5pc+l/c9aOuMsAn2rL
wRm1Edwh94KrolgQukyRp1uL
=ajVu
-----END PGP SIGNATURE-----