Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - bug in files manager ??
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

bug in files manager ??

 Post Reply Post Reply
Author
Flyman30 View Drop Down
Groupie
Groupie
Avatar

Joined: 09 December 2004
Location: France
Status: Offline
Points: 99
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flyman30 Quote  Post ReplyReply Direct Link To This Post Topic: bug in files manager ??
    Posted: 25 July 2007 at 7:01pm
Error in files manager.

one cannot erase a file. I select the file clic on delete link then :

Error message:

Error: deleteFile is not defined
Source file: Javascript: deleteFile (document.getElementById (“fileName”) .innerHTML); Line: 1
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2007 at 11:06am
Have double checked this and can not reproduce this error.

Reupload the original files again incase you have a corrupted file.
Back to Top
Flyman30 View Drop Down
Groupie
Groupie
Avatar

Joined: 09 December 2004
Location: France
Status: Offline
Points: 99
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flyman30 Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2007 at 4:52pm
I reupload the original files put the new  :

- file_delete.asp
- file_manager.asp
- file_upload.asp

but i still cannot delete files : deleteFile is not defined
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2007 at 5:03pm
This javascript functions should be in the head of the File Manger page. Try doing a view source on the page and checking the javascript is there.

You may also want to check that any integration you have done doesn't contain javascript that will conflict with this.
Back to Top
Flyman30 View Drop Down
Groupie
Groupie
Avatar

Joined: 09 December 2004
Location: France
Status: Offline
Points: 99
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flyman30 Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2007 at 5:12pm
Originally posted by -boRg- -boRg- wrote:

This javascript functions should be in the head of the File Manger page. Try doing a view source on the page and checking the javascript is there.

You may also want to check that any integration you have done doesn't contain javascript that will conflict with this.


Yes javascript function is in the right place and no i do not make any change
Back to Top
Flyman30 View Drop Down
Groupie
Groupie
Avatar

Joined: 09 December 2004
Location: France
Status: Offline
Points: 99
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flyman30 Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2007 at 5:20pm
in FireBug error message = deleteFile is not defined

<!--//
10/* *******************************************************
11Software: Web Wiz Forums ver. 9.0
12Info: http://www.webwizforums.com
13Copyright: ©2001-2007 Web Wiz. All rights reserved
14******************************************************* */
15//-->
19<script language="JavaScript">
21//delete file
22function deleteFile(deleteFileName) {
23 //check for file
24 if (deleteFileName == ''){
25 alert('Il n'y a aucun fichier de sélectionné');
26 return;
27 }
28 //confirm file deletion
29 if (confirm('Etes vous certainde vouloir effacer ce fichier ? \'' + deleteFileName + '\'?')){
30 self.location.href = 'file_delete.asp?fileName=' + deleteFileName + '';
31 return true;
32 }
34</script>
36<link href="css_styles/default/default_style.css" rel="stylesheet" type="text/css" />
37<script language="javascript" src="includes/default_javascript.js" type="text/javascript"></script>
38</head>

Back to Top
Flyman30 View Drop Down
Groupie
Groupie
Avatar

Joined: 09 December 2004
Location: France
Status: Offline
Points: 99
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flyman30 Quote  Post ReplyReply Direct Link To This Post Posted: 26 July 2007 at 5:25pm
Sorry I find it !!

It come from the French language file (') in the alert box ...
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.