🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.javascript
Article #7

HELP NEEDED with script error "permission denied"

#7
From: Erik van Roekel
Date: Fri, 23 Jun 2000 00:00
37 lines
2027 bytes
On http://evroekel.cjb.net i'm using the following script:

<SCRIPT type="text/javascript">
<!-- Hide this code from non-JavaScript browsers
      var L=top.location.pathname;
      var B=L.lastIndexOf("/");
      var L=L.substring(B+1);

      if (L.substring(0,7)=="header_") {
        top.location=L.substring(7)};
      if (L.substring(0,5)=="body_") {
        top.location=L.substring(5)};

    // End hiding -->
</SCRIPT>

I'm using frames on my site. This scripts checks if the contentpage is
loaded directly and if so, it loads the correct framesetpage.

Two examples:

If the page http://evroekel.cjb.net/html/body_aruba.html is loaded the
script will redirect the user to the correctpage
http://evroekel.cjb.net/html/aruba.html

And if the page http://evroekel.cjb.net/html/header_aruba.html is
loaded the script will also redirect the user to the correctpage
http://evroekel.cjb.net/html/aruba.html

BUT I get an error "permission denied" and I don't know what's wrong
with the script !

Can some java-expert help me, please ?! TIA !

Regards,
Erik van Roekel
http://evroekel.cjb.net 
Technical Details
Message-ID: <3953b7e7.1115674@news.arnhem.chello.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10731d,ba63bfa8bac40758,start
X-Google-Attributes: gid10731d,public
X-Google-Thread: 10bacc,ba63bfa8bac40758,start
X-Google-Attributes: gid10bacc,public
X-Google-Thread: fb3cb,ba63bfa8bac40758,start
X-Google-Attributes: gidfb3cb,public
From: e.vroekel@chello.nl (Erik van Roekel)
Subject: HELP NEEDED with script error "permission denied"
Date: 2000/06/23
Message-ID: <3953b7e7.1115674@news.arnhem.chello.nl>
X-Deja-AN: 638179295
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@chello.nl
X-Trace: flipper 961788584 212.187.58.231 (Fri, 23 Jun 2000 21:29:44 MET DST)
Organization: Chello Broadband
MIME-Version: 1.0
NNTP-Posting-Date: Fri, 23 Jun 2000 21:29:44 MET DST
Newsgroups: comp.lang.java.javascript,comp.lang.javascript,borland.public.intrabuilder.javascript