Access forbidden

Κώδικας, πληροφορίες, ερωτήσεις και απαντήσεις σχετικές με την JavaScript.

Συντονιστές: WebDev Moderators, Super-Moderators

Απάντηση
kingbill
Δημοσιεύσεις: 244
Εγγραφή: 19 Νοέμ 2005 15:06

Access forbidden

Δημοσίευση από kingbill » 07 Δεκ 2005 13:53

exo auto menu kai otan patao stin epilogi Εισαγωγική Στην Πληροφορική mou bgazei Access forbidden

You don't have permission to access the requested object. It is either read-protected or not readable by the server

Κώδικας: Επιλογή όλων

awmNS6OffsetX=4;
var awmMenuName='menu';
var awmLibraryBuild=624;
var awmLibraryPath='/awmdata';
var awmImagesPath='/awmdata';
var awmSupported=(navigator.appName + navigator.appVersion.substring(0,1)=="Netscape5" || document.all || document.layers || navigator.userAgent.indexOf('Opera')>-1 || navigator.userAgent.indexOf('Konqueror')>-1)?1:0;
if (awmAltUrl!='' && !awmSupported) window.location.replace(awmAltUrl);
if (awmSupported){
var awmMenuPath;
if (document.layers) mpi=((document.images['awmMenuPathImg-menu'])?document.images['awmMenuPathImg-menu'].src:document.layers['xawmMenuPathImg-menu'].document.images['awmMenuPathImg-menu'].src); else mpi=document.images['awmMenuPathImg-menu'].src;
awmMenuPath=mpi.substring(0,mpi.length-16);
while (awmMenuPath.search("'")>-1) {awmMenuPath=awmMenuPath.replace("'", "'");}
var nua=navigator.userAgent,scriptNo=(nua.indexOf('Safari')>-1)?7:(nua.indexOf('Gecko')>-1)?2:((document.layers)?3:((nua.indexOf('Opera')>-1)?4:((nua.indexOf('Mac')>-1)?5:1)));
document.write&#40;"<SCRIPT SRC='"+awmMenuPath+awmLibraryPath+"/awmlib"+scriptNo+".js'><\/SCRIPT>"&#41;;
var n=null;
awmzindex=1000;
&#125;

var awmSubmenusFrame='';
var awmSubmenusFrameOffset;
var awmOptimize=0;
var awmUseTrs=0;
var awmSepr=&#91;"0","","",""&#93;;
function awmBuildMenu&#40;&#41;&#123;
if &#40;awmSupported&#41;&#123;
awmImagesColl=&#91;"main-header.gif",8,35,"main-footer.gif",9,35,"main-button-tile.gif",113,35,"sub-button-tile.gif",115,35,"sub-button-left.gif",8,35,"sub-button-right.gif",9,35&#93;;
awmCreateCSS&#40;1,2,1,'#FFFFFF',n,n,'14px sans-serif',n,'none',0,'#000000','0px 0px 0px 0',0&#41;;
awmCreateCSS&#40;0,2,1,'#FFFFFF',n,n,'14px sans-serif',n,'none',0,'#000000','0px 0px 0px 0',0&#41;;
awmCreateCSS&#40;1,2,1,'#FFFFFF','#0055E5',n,'14px sans-serif',n,'none',0,'#000000','0px 0px 0px 0',0&#41;;
awmCreateCSS&#40;0,2,1,'#FFFFFF','#0055E5',n,'14px sans-serif',n,'none',0,'#000000','0px 0px 0px 0',0&#41;;
awmCreateCSS&#40;0,1,0,n,'#B63535',n,n,n,'none',0,'#000000',0,0&#41;;
awmCreateCSS&#40;1,2,1,'#FDC665',n,2,'bold 11px Tahoma',n,'none',0,'#000000','5px 15px 0px 15',0&#41;;
awmCreateCSS&#40;0,2,1,'#FFFFFF',n,2,'bold 11px Tahoma',n,'none',0,'#000000','5px 15px 0px 15',0&#41;;
awmCreateCSS&#40;0,1,0,n,n,n,n,n,'none',0,'#000000',0,0&#41;;
awmCreateCSS&#40;1,2,0,'#FDC665',n,3,'bold 11px Tahoma',n,'none',0,'#000000','0px 15px 0px 15',1&#41;;
awmCreateCSS&#40;0,2,0,'#FFFFFF',n,3,'bold 11px Tahoma',n,'none',0,'#000000','0px 15px 0px 15',1&#41;;
awmCreateCSS&#40;1,2,0,'#FDC665',n,3,'bold 11px Tahoma',n,'none',0,'#000000','0px 15px 0px 15',0&#41;;
awmCreateCSS&#40;0,2,0,'#FFFFFF',n,3,'bold 11px Tahoma',n,'none',0,'#000000','0px 15px 0px 15',0&#41;;
var s0=awmCreateMenu&#40;0,0,0,0,1,0,0,0,5,10,10,0,1,4,0,0,1,n,n,100,0,0,10,10&#41;;
it=s0.addItemWithImages&#40;0,1,1,"","","","",0,0,0,3,3,3,n,n,n,"",n,n,n,n,n,0,0,0,n,n,n,n,n,n,0,0,0,0&#41;;
it=s0.addItem&#40;5,6,6,"Εξάμηνο Α",n,n,"","",n,n,n,n,n,0,0,2,0&#41;;
var s1=it.addSubmenu&#40;0,0,0,0,0,0,0,7,1,1,0,n,n,100,0,1&#41;;
it=s1.addItemWithImages&#40;8,9,9,"awmNS6OffsetX=4;
var awmMenuName='menu';
var awmLibraryBuild=624;
var awmLibraryPath='/awmdata';
var awmImagesPath='/awmdata';
var awmSupported=&#40;navigator.appName + navigator.appVersion.substring&#40;0,1&#41;=="Netscape5" || document.all || document.layers || navigator.userAgent.indexOf&#40;'Opera'&#41;>-1 || navigator.userAgent.indexOf&#40;'Konqueror'&#41;>-1&#41;?1&#58;0;
if &#40;awmAltUrl!='' && !awmSupported&#41; window.location.replace&#40;awmAltUrl&#41;;
if &#40;awmSupported&#41;&#123;
var awmMenuPath;
if &#40;document.layers&#41; mpi=&#40;&#40;document.images&#91;'awmMenuPathImg-menu'&#93;&#41;?document.images&#91;'awmMenuPathImg-menu'&#93;.src&#58;document.layers&#91;'xawmMenuPathImg-menu'&#93;.document.images&#91;'awmMenuPathImg-menu'&#93;.src&#41;; else mpi=document.images&#91;'awmMenuPathImg-menu'&#93;.src;
awmMenuPath=mpi.substring&#40;0,mpi.length-16&#41;;
while &#40;awmMenuPath.search&#40;"'"&#41;>-1&#41; &#123;awmMenuPath=awmMenuPath.replace&#40;"'", "'"&#41;;&#125;
var nua=navigator.userAgent,scriptNo=&#40;nua.indexOf&#40;'Safari'&#41;>-1&#41;?7&#58;&#40;nua.indexOf&#40;'Gecko'&#41;>-1&#41;?2&#58;&#40;&#40;document.layers&#41;?3&#58;&#40;&#40;nua.indexOf&#40;'Opera'&#41;>-1&#41;?4&#58;&#40;&#40;nua.indexOf&#40;'Mac'&#41;>-1&#41;?5&#58;1&#41;&#41;&#41;;
document.write&#40;"<SCRIPT SRC='"+awmMenuPath+awmLibraryPath+"/awmlib"+scriptNo+".js'><\/SCRIPT>"&#41;;
var n=null;
awmzindex=1000;
&#125;

var awmSubmenusFrame='';
var awmSubmenusFrameOffset;
var awmOptimize=0;
var awmUseTrs=0;
var awmSepr=&#91;"0","","",""&#93;;
function awmBuildMenu&#40;&#41;&#123;
if &#40;awmSupported&#41;&#123;
awmImagesColl=&#91;"main-header.gif",8,35,"main-footer.gif",9,35,"main-button-tile.gif",113,35,"sub-button-tile.gif",115,35,"sub-button-left.gif",8,35,"sub-button-right.gif",9,35&#93;;
awmCreateCSS&#40;1,2,1,'#FFFFFF',n,n,'14px sans-serif',n,'none',0,'#000000','0px 0px 0px 0',0&#41;;
awmCreateCSS&#40;0,2,1,'#FFFFFF',n,n,'14px sans-serif',n,'none',0,'#000000','0px 0px 0px 0',0&#41;;
awmCreateCSS&#40;1,2,1,'#FFFFFF','#0055E5',n,'14px sans-serif',n,'none',0,'#000000','0px 0px 0px 0',0&#41;;
awmCreateCSS&#40;0,2,1,'#FFFFFF','#0055E5',n,'14px sans-serif',n,'none',0,'#000000','0px 0px 0px 0',0&#41;;
awmCreateCSS&#40;0,1,0,n,'#B63535',n,n,n,'none',0,'#000000',0,0&#41;;
awmCreateCSS&#40;1,2,1,'#FDC665',n,2,'bold 11px Tahoma',n,'none',0,'#000000','5px 15px 0px 15',0&#41;;
awmCreateCSS&#40;0,2,1,'#FFFFFF',n,2,'bold 11px Tahoma',n,'none',0,'#000000','5px 15px 0px 15',0&#41;;
awmCreateCSS&#40;0,1,0,n,n,n,n,n,'none',0,'#000000',0,0&#41;;
awmCreateCSS&#40;1,2,0,'#FDC665',n,3,'bold 11px Tahoma',n,'none',0,'#000000','0px 15px 0px 15',1&#41;;
awmCreateCSS&#40;0,2,0,'#FFFFFF',n,3,'bold 11px Tahoma',n,'none',0,'#000000','0px 15px 0px 15',1&#41;;
awmCreateCSS&#40;1,2,0,'#FDC665',n,3,'bold 11px Tahoma',n,'none',0,'#000000','0px 15px 0px 15',0&#41;;
awmCreateCSS&#40;0,2,0,'#FFFFFF',n,3,'bold 11px Tahoma',n,'none',0,'#000000','0px 15px 0px 15',0&#41;;
var s0=awmCreateMenu&#40;0,0,0,0,1,0,0,0,5,10,10,0,1,4,0,0,1,n,n,100,0,0,10,10&#41;;
it=s0.addItemWithImages&#40;0,1,1,"","","","",0,0,0,3,3,3,n,n,n,"",n,n,n,n,n,0,0,0,n,n,n,n,n,n,0,0,0,0&#41;;
it=s0.addItem&#40;5,6,6,"Εξάμηνο Α",n,n,"","",n,n,n,n,n,0,0,2,0&#41;;
var s1=it.addSubmenu&#40;0,0,0,0,0,0,0,7,1,1,0,n,n,100,0,1&#41;;
it=s1.addItemWithImages&#40;8,9,9,"Εισαγωγική Στην Πληροφορική",n,n,"C&#58;/Program Files/xampp/htdocs/ptixiaki/Rlab.htm",n,n,n,3,3,3,n,n,n,"C&#58;/Program Files/xampp/htdocs/ptixiaki/Rlab.htm",n,n,n,"C&#58;/Program Files/xampp/htdocs/ptixiaki/Rlab.htm",n,0,0,2,4,4,4,5,5,5,1,1,1,0&#41;;
it=s1.addItemWithImages&#40;10,11,11,"Εισαγωγική Στoν Προγραμματισμό",n,n,"",n,n,n,3,3,3,n,n,n,"",n,n,n,n,n,0,0,2,4,4,4,5,5,5,1,1,1,0&#41;;
it=s1.addItemWithImages&#40;10,11,11,"Τεχνική Της Έκφρασης Και Τεκμηρίωση",n,n,"",n,n,n,3,3,3,n,n,n,"",n,n,n,n,n,0,0,2,4,4,4,5,5,5,1,1,1,0&#41;;
it=s1.addItemWithImages&#40;10,11,11,"Ηλεκτρικά Κυκλώματα",n,n,"",n,n,n,3,3,3,n,n,n,"",n,n,n,n,n,0,0,2,4,4,4,5,5,5,1,1,1,0&#41;;",n,n,"C&#58;/Program Files/xampp/htdocs/ptixiaki/Rlab.htm",n,n,n,3,3,3,n,n,n,"C&#58;/Program Files/xampp/htdocs/ptixiaki/Rlab.htm",n,n,n,"C&#58;/Program Files/xampp/htdocs/ptixiaki/Rlab.htm",n,0,0,2,4,4,4,5,5,5,1,1,1,0&#41;;
it=s1.addItemWithImages&#40;10,11,11,"Εισαγωγική Στoν Προγραμματισμό",n,n,"",n,n,n,3,3,3,n,n,n,"",n,n,n,n,n,0,0,2,4,4,4,5,5,5,1,1,1,0&#41;;
it=s1.addItemWithImages&#40;10,11,11,"Τεχνική Της Έκφρασης Και Τεκμηρίωση",n,n,"",n,n,n,3,3,3,n,n,n,"",n,n,n,n,n,0,0,2,4,4,4,5,5,5,1,1,1,0&#41;;
it=s1.addItemWithImages&#40;10,11,11,"Ηλεκτρικά Κυκλώματα",n,n,"",n,n,n,3,3,3,n,n,n,"",n,n,n,n,n,0,0,2,4,4,4,5,5,5,1,1,1,0&#41;;

Άβαταρ μέλους
skeftomilos
Script Master
Δημοσιεύσεις: 2888
Εγγραφή: 07 Ιαν 2005 07:22
Τοποθεσία: Αθήνα

Access forbidden

Δημοσίευση από skeftomilos » 08 Δεκ 2005 02:44

Βλέπω την παρακάτω γραμμή:

Κώδικας: Επιλογή όλων

it = s1.addItemWithImages&#40;8, 9, 9, "Εισαγωγική Στην Πληροφορική", n, n, "C&#58;/Program Files/xampp/htdocs/ptixiaki/Rlab.htm", n, n, n, 3, 3, 3, n, n, n, "C&#58;/Program Files/xampp/htdocs/ptixiaki/Rlab.htm", n, n, n, "C&#58;/Program Files/xampp/htdocs/ptixiaki/Rlab.htm", n, 0, 0, 2, 4, 4, 4, 5, 5, 5, 1, 1, 1, 0&#41;;
Υποθέτω ότι δημιουργεί link με λεκτικό "Εισαγωγική Στην Πληροφορική" και διεύθυνση "C:/Program Files/xampp/htdocs/ptixiaki/Rlab.htm". Αν αυτό το αρχείο δεν υπάρχει στη συγκεκριμένη διεύθυνση, λογικό είναι να βγαίνει αυτό το μήνυμα. Δεν είναι λάθος στη JavaScript, είναι μήνυμα λάθους από τον Web server.

Μια καλή ιδέα είναι να αποφεύγονται τα absolute URLs. Αντί για "C:/Program Files/xampp/htdocs/ptixiaki/Rlab.htm" ίσως δουλέψει το απλό "Rlab.htm", αρκεί να βρίσκονται και τα δύο αρχεία στον ίδιο φάκελο.
The pure and simple truth is rarely pure and never simple. Ο μη νους δε σκέπτεται μη σκέψεις για το τίποτα.

kingbill
Δημοσιεύσεις: 244
Εγγραφή: 19 Νοέμ 2005 15:06

Access forbidden

Δημοσίευση από kingbill » 08 Δεκ 2005 07:55

thanks file mou to ekana ebala sketo to rlab.htm

Απάντηση

Επιστροφή στο “JavaScript και Frameworks”

Μέλη σε σύνδεση

Μέλη σε αυτήν τη Δ. Συζήτηση: Δεν υπάρχουν εγγεγραμμένα μέλη και 0 επισκέπτες