Re: HOAW

From: Date: Fri, 30 Aug 2002 02:58:15 +0000
Subject: Re: HOAW
References: 1 2  Groups: php.doc.chm 
Request: Send a blank email to php-doc-chm+get-439@lists.php.net to get a copy of this message
are you sure this code does not fix the problem of the friendly error messages and pages not showing up? I have ie6.0 running on win98. what did you test the code with? > >I think I found a workaround! > > > >try this on for size! > > > >***************************************** > >function loadNotes() > >{ > > // Notes buffer for user notes to display on this page > > > > document.write( > > '<iframe name="nbuff" id=nbuff style="display:none" > >src="about:blank"></iframe>' > > ); > >nbuff.location = 'c:/php_manual_notes/' + chmfile_page; > >//'<a href="c:/php_manual_notes/' + chmfile_page + '" target="nbuff">Expand > >User Notes!</a>' > > > >} > >***************************************** > > Nope, not working. > It's not the hardcoded location you need to access, but the MSITStore, as I mentioned, you will have to change the address. Brendan like > this: > <script> > chm_path = unescape(location.href.substring(8, > location.href.lastIndexOf("/")+1)); > document.write( > '<iframe src="about:blank" name="nbuff" ' + > 'style="display:none;"></iframe>' > ); > nbuff.location='mk:@MSITStore:' + chm_path + > 'simplepage.chm::/simplepge.html'; > </script> > <div id="HTMLtoHere"></div> > This page should not display an error. > > And that will produce the error. > > 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> > > > Met vriendelijke groeten / With kind regards, > > Webmaster IDG.nl > Melvyn Sopacua > > <@Logan> I spent a minute looking at my own code by accident. > <@Logan> I was thinking "What the hell is this guy doing?" >

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