pass username & password from a form to js file

Upload core product.
Post Reply
juan143el
Posts: 1
Joined: Wed Jun 03, 2009 4:36 pm

pass username & password from a form to js file

Post 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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

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

Post 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 ?

Post Reply