manual notes bug test file
| From: | Gabor Hojtsy | Date: | Sun, 19 May 2002 17:26:42 +0000 |
| Subject: | manual notes bug test file | ||
| Groups: | php.doc.chm | ||
| Request: | Send a blank email to php-doc-chm+get-209@lists.php.net to get a copy of this message | ||
Hi!
As there is great pressure on me to solve this bug,
I decided to implement the things adviced by some
of the guys here. Though I still think that this
won't fix the problem, just avoid the error to be
printed out.
The code used before was:
function displayNotes() {
document.all['unotes'].innerHTML
= parent.nbuff.document.body.innerHTML;
}
The current code:
function displayNotes(){_displayNotes();}
function _displayNotes()
{
// Support for IE 4.x
if (document.all) {
if (element = document.all['unotes']) {
element.innerHTML = parent.nbuff.document.body.innerHTML;
}
}
// Support for IE 5.x+
else if (document.getElementById) {
if (element = document.getElementById("unotes")) {
element.innerHTML = parent.nbuff.document.body.innerHTML;
}
}
}
these two functions are to overcome the IE issue
of referencing functions with parent.funcname().
There are swicthes for IE functionalities, and checks
if that div is there. The problem why that error message
poped up is that the DIV was not there for some reason
on the IE object hierarchy. This problem *is not* solved
by this script. The error message is not printed out
though...
Noone was so kind to give me tips why that error message
really pops up, and I cannot find any problems, as all
still works fine on the machine[s] I have tested...
You can access the test version here:
http://weblabor.hu/php-doc-chm/manual_notes_test.zip
This is a tiny, 200k zip file with only a php_manual_en.chm
file. The content is quite limited, though it is perfect
to test such errors. Please replace your Sample 5 chm with
this file, and check if the unotes error is still there...
I can go on with other errors/improvements from then on...
Goba