can't get setparameter to work

Upload core product.
Post Reply
androidmj
Posts: 3
Joined: Wed Jul 02, 2008 7:57 am

can't get setparameter to work

Post 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

androidmj
Posts: 3
Joined: Wed Jul 02, 2008 7:57 am

Re: can't get setparameter to work

Post by androidmj »

Java class jfileupload.upload.client.MApplet has no public field or method named "url"

androidmj
Posts: 3
Joined: Wed Jul 02, 2008 7:57 am

Re: can't get setparameter to work

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

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

Re: can't get setparameter to work

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

Post Reply