Re: manual notes bug test file

From: Date: Sun, 19 May 2002 18:57:46 +0000
Subject: Re: manual notes bug test file
References: 1  Groups: php.doc.chm 
Request: Send a blank email to php-doc-chm+get-212@lists.php.net to get a copy of this message
Well, i got no errors now with the test file Wait for others to feedback also. I have a suggestion for your new version of the chm manual. I would really like you to consider it. I hate white background when reading too much from the screen. It kills my eyes. You can implement in the JS code to enable or disable the background on the pages. That way a user would get his default background from Windows and not the white background. You can do this by adding an onload="if(foo) this.style.backgroundColor: #FFFFFF; return true;" statement in the <body> tag. "foo" would be the variable set to "true" if the user has selected to enable white background. Please? :) Cheers, BoG "Gabor Hojtsy" <gabor@hojtsy.hu> wrote in message news:001101c1ff5a$582f29f0$5337a3d5@home... > 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 > >

« previous php.doc.chm (#212) next »