Re: HOAW

From: Date: Fri, 30 Aug 2002 09:27:22 +0000
Subject: Re: HOAW
References: 1  Groups: php.doc.chm 
Request: Send a blank email to php-doc-chm+get-446@lists.php.net to get a copy of this message
> The work-around is as follows: > <div id="checkStore"> > <script> > var isOk = new Boolean(false); > var chm_path = unescape(location.href.substring(8, > location.href.lastIndexOf("/")+1)); > var testpage = 'notthere'; // change to simplepage > > var strIframe = '<iframe src="mk:@MSITStore:' + chm_path + > 'simplepage.chm::/' + testpage + '.html" id="checkbuff" > ' + > '></iframe>'; > > function checkState() > { > if(event.srcElement.readyState == 'interactive') > { > isOk=true; > } > } > > document.write( > '<xml src="mk:@MSITStore:' + chm_path + > 'simplepage.chm::/' + testpage + '.html" id="checkbuff" > ' + > 'style="display:none;" onreadystatechange="checkState()" > ></xml>' > ); > > function processResult() > { > if(isOk == true) > { > document.getElementById('boxUserNotes').innerHTML=strIframe; > } > } > > window.onload=processResult; > </script> > </div> > > <div id="boxUserNotes"></div> Question: why the loader is in a div id="checkStore"?? Problems: - 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) - xml data islands are only supported from IE5 and some guys really would like to see this working with IE4, which is was not aware for some time, but Brendan is back to work on it again - aren't there any problems when the XML data island contains non-XML data (HTML in this case)? Goba

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