Re: HOAW

From: Date: Fri, 30 Aug 2002 12:11:55 +0000
Subject: Re: HOAW
References: 1 2  Groups: php.doc.chm 
Request: Send a blank email to php-doc-chm+get-450@lists.php.net to get a copy of this message
> > - the boxUserNotes content should not be strIframe, but the contents > > of the xml data island, isn't it? why there is a need to load in the > > file two times (it's slow) > > There is no need. Basically - I've been fiddling with: > -- img src / onerror (always fails, since content != image/*) > -- object data= onerror (always succeeds) > -- iframe readystates (causing a crash when you change the src in between > events :-) > -- and finally the xml data island, which is the only element I found, > which can verify the existence of an external source and act on that. > > Since I don't have the decompiled source for the official distribution, I > didn't know, whether you wanted to use the XML element, and pull the > comments outof a data-island. This would mean, comments need to be > structured and edited. So I left the iframe alone. Well, the contents of the IFRAME are copied into the DIV to show as if it would be there originally. I guess <XML> also has an innerHTML or something like this [XMLDocument] which can be read for contents. I also had some more ideas, like putting the whole notes into one document.write() and load it with <script src="">, but never tried that becuase it may be impossible to search in these note files, and the <script> tag produces an error if the script file cannot be found AFAIK... > Hmm - since turning on friendly HTTP error messages is an option, there are > some things that just can't be done in legacy software and shouldn't this > be considered an acceptable work-around? I'm surprised HTML Help still > works with IE4. HTML Help works with IE3 too ;) The question if IE4 is legacy or not is not up to us. If even a minority of our users still use it for some resons (company standards for example), then it would be the best to support them. BTW as I said before I was on the side to drop IE4 compatibility, but as it seems there is still a strong need for it.... > Really the only other option would be to merge them into 1 file. I have > tried __many__ things. > If HTML Help allows real frames (not iframes) then there would be a chance, > because that is a real window object, which can handle 'onerror' - this > would mess up layout I guess. HTML Help of course supports frames, but that would add a significant speed decrease again to put pages into frames when they are not in them (if a page is accessed from favourites or search or index or from outside of the CHM from an IDE). That would involve too much JS magic again. The worst thing is that this is a BUG in IE6 (and some IE5.5s), and it will be fixed with the next Service Pack... > > - aren't there any problems when the XML data island contains non-XML > > data (HTML in this case)? > > Yes. Your best bet would be to put in a root element and a CDATA section. > On the other hand - I don't know how you build it, but by using libxml's > HTML parser, one can create an XML document relatively easy (your biggest > problem will probably be mixed charsets). The user notes are created from text files, so this would work, but still I am conserned about old browsers... Goba

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