Thread View: comp.lang.java.javascript
1 messages
1 total messages
Started by Erik van Roekel
Fri, 23 Jun 2000 00:00
HELP NEEDED with script error "permission denied"
Author: Erik van Roekel
Date: Fri, 23 Jun 2000 00:00
Date: Fri, 23 Jun 2000 00:00
37 lines
2027 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads