Page 1 of 1
can't get setparameter to work
Posted: Wed Jul 02, 2008 7:59 am
by androidmj
For some reason I can't change any of the values using javascript? I"m using the basic .js file that comes with jfileupload. Can someone give me an example of how this works...or tell me what I"m doing wrong???
<script type="text/javascript">function stuff(){document.fileupload.setParameter('url','something');}</script>
...nothing happens
Re: can't get setparameter to work
Posted: Wed Jul 02, 2008 8:02 am
by androidmj
Java class jfileupload.upload.client.MApplet has no public field or method named "url"
Re: can't get setparameter to work
Posted: Wed Jul 02, 2008 8:34 am
by androidmj
wow nevermind...can't set url...have to use post. And it is somewhat confusing because you update it using setProperty('post', '
http://blah.com/process.php?thing=somthing');
And then use $_GET['thing'] to retrieve it...just FYI for anyone who is having the same problem.
Re: can't get setparameter to work
Posted: Wed Jul 02, 2008 5:36 pm
by support
document.fileupload.setParameter(name,value) is for EXTRA parameters
document.fileupload.setProperty(name,value) is for REGULAR parameters
You have the list of REGULAR and EXTRA parameters at:
For HTTP:
http://www.jfileupload.com/products/jfi ... _http.html
For FTP:
http://www.jfileupload.com/products/jfi ... n_ftp.html
It may help if you need to update another parameter.