Re: HOAW

From: Date: Thu, 29 Aug 2002 18:38:40 +0000
Subject: Re: HOAW
References: 1  Groups: php.doc.chm 
Request: Send a blank email to php-doc-chm+get-435@lists.php.net to get a copy of this message
At 14:09 8/29/2002 -0400, you wrote:
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, 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 (#435) next »