Page 1 of 1
Error when calling setParameter
Posted: Mon Jun 15, 2009 9:15 pm
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
Re: Error when calling setParameter
Posted: Tue Jun 16, 2009 6:13 am
by support
Are you calling this function after the applet is loaded ?
Re: Error when calling setParameter
Posted: Wed Jun 24, 2009 3:27 pm
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?
Re: Error when calling setParameter
Posted: Wed Jun 24, 2009 9:55 pm
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