Gossamer Forum
Home : Products : Others : Fileman :

javascript not working.

Quote Reply
javascript not working.
i installed fileman on prohosting and it gives me the first page showing root dir ok but i don't get any of the javascript popups like on gossamer's demo. anyone else had this problem? below, i'll paste the errors netscape gave and the errors that ie5 reported. i was going to paste in the javascript that it generated but it doesn't show up in the preview of this message. it appears to be different from the javascript generated by the demo.

IE5 errors
===============
Line 11
Char 32
Error: Expected ';'
Code: 0
URL: ......./fileman.cgi


=======================
Netscape errors
===========================
JavaScript Error:
http://odin.prohosting.com/***hidden***/cgi-bin/fileman/fileman.cgi,
line 11:

missing ; after for-loop condition.

for (i=0; i if (validString.charAt(0) == '.') {
...............................^

JavaScript Error:
http://odin.prohosting.com/***hidden***/cgi-bin/fileman/fileman.cgi:

renameFile is not defined.
JavaScript Error:
http://odin.prohosting.com/***hidden***/cgi-bin/fileman/fileman.cgi:

changePermissions is not defined.
JavaScript Error:
http://odin.prohosting.com/***hidden***/cgi-bin/fileman/fileman.cgi:

deleteFile is not defined.
JavaScript Error:
http://odin.prohosting.com/***hidden***/cgi-bin/fileman/fileman.cgi:

deleteFile is not defined.
JavaScript Error:
http://odin.prohosting.com/***hidden***/cgi-bin/fileman/fileman.cgi:

deleteFile is not defined.
JavaScript Error:
http://odin.prohosting.com/***hidden***/cgi-bin/fileman/fileman.cgi:

deleteFile is not defined.

==============================

Quote Reply
Re: javascript not working. In reply to
the cgi script has the following lines:

var i, invalidChar;
for (i=0; i<validString.length; i++) {
if (validString.charAt(0) == '.') {

which always end up in html file as:

var i, inValidChar;
for (i=0; i if (validString.charAt(0) == '.') {

it's somehow losing the "<validString.length; i++) {". i guess this is a problem with the server?

smayed