Page 1 of 1

pass username & password from a form to js file

Posted: Wed Jun 03, 2009 4:40 pm
by juan143el
how do i go about passing the username and password which the client fills into a form to the js file parameters. The form fields are on my main page which has an iframe that the applet_ftp.html page shows up in when they imput there username and password and click "login". how do i pass that user name and password info to the .js file so it works.

Re: pass username & password from a form to js file

Posted: Wed Jun 03, 2009 9:54 pm
by support
Two solutions:

1 - Pass as applet parameters:
<PARAM NAME="username" VALUE="yourloginhere">
<PARAM NAME="password" VALUE="yourpasswordhere">

2 - Pass with JavaScript
document.fileupload.setParameter("username","yourloginhere");
document.fileupload.setParameter("password","yourpasswordhere");
http://www.jfileupload.com/products/jfi ... aq.html#49

Does it help ?