Error when calling setParameter

Upload core product.
Post Reply
cserold
Posts: 7
Joined: Thu Jun 11, 2009 4:00 pm

Error when calling setParameter

Post by cserold »

Hello,

I am using the following code:

Code: Select all

document.fileupload.setParameter("folderID","567");
To assign the folderID that the documents are being uploaded into. I am assuming that I can add a custom piece of data to the form object so that I can use it in the .aspx handler. I am getting the attached javascipt error when calling this function. Can you please advise?

Thanks,
Craig
Attachments
jFileUpload_setParameter.jpg
(19.38 KiB) Downloaded 221 times

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

Re: Error when calling setParameter

Post by support »

Are you calling this function after the applet is loaded ?

cserold
Posts: 7
Joined: Thu Jun 11, 2009 4:00 pm

Re: Error when calling setParameter

Post by cserold »

Sorry for the delay in responding. Yes, I am calling the function after the applet is loaded. In my interface there is a folder tree that, when a folder is clicked, I am wanting to set a "FolderID" parameter on the applet control. So each time a folder in my folder tree is clicked a call to setParameter would be made to set the unique ID of the folder. Does that make sense?

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

Re: Error when calling setParameter

Post by support »

Could you try with the JSAPI add-on ? You have and HTML form with JavaScript call sample. You should be able to pass your parameter and see if it works.
http://www.jfileupload.com/products/tools/index.html

Post Reply