Page 1 of 1

Prompt for Login

Posted: Sat Jun 13, 2009 2:46 am
by krappold
I have setup JDiskExplorer and set the authentication=auto.

When I try to upload, it prompts for login and pwd.

But I want it to prompt for login and pwd before that so user can see what is in remote system and download first if needed.

What controls doing it that way?

Also, the docs indicate that when the REFRESH is clicked, it will popup the login/pwd dialog. This does not seem to work. It seems to refresh but never pops up the login dialog.

Re: Prompt for Login

Posted: Sat Jun 13, 2009 7:17 am
by support
Do you pass empty username and password in your JavaScript ?

Re: Prompt for Login

Posted: Sun Jun 14, 2009 12:37 pm
by krappold
Yes, here are what I put into "applet_ftp_explorer.js" in the IE section.

I then cleared cache to make sure I got the latest.

When I click Upload, I get the logon dialog. But when I click Refresh I do not.

Also, what I really want is for the script to ask for logon before any buttons need to be clicked.

document.writeln('<PARAM NAME="authentication" VALUE="auto">');
document.writeln('<PARAM NAME="url" VALUE="ftp://herculessteelco.net">');
document.writeln('<PARAM NAME="username" VALUE="">');
document.writeln('<PARAM NAME="password" VALUE="">');

Re: Prompt for Login

Posted: Sun Jun 14, 2009 1:47 pm
by support
Try:
document.writeln('<PARAM NAME="authentication" VALUE="auto">');
document.writeln('<PARAM NAME="url" VALUE="ftp://herculessteelco.net">');
document.writeln('<PARAM NAME="username" VALUE="test">');
document.writeln('<PARAM NAME="password" VALUE="">');

http://www.jfileupload.com/products/jdi ... aq.html#15

Re: Prompt for Login

Posted: Tue Jun 16, 2009 1:21 am
by krappold
That fixed it. I missed that you had to have something in the username.

It prompts now.

Thanks