You don't pass functionname(), but just the name. Change your oncomplete to

oncomplete="uploadCompleteHandler"

Now this means you can't pass in the CF variable. Just use within your
js. It will be static on the client side though.

On Tue, Dec 22, 2009 at 12:52 PM, Tim Do <t...@wng.com> wrote:
>
> I'm trying to do a multiple file upload using cffileupload.  The upload is 
> working fine but I'd like to relocate the user after all files have been 
> uploaded.
> I added: onComplete="uploadCompleteHandler('#batchUploadName#')"
> But the user is being redirected on the page load and not after the user has 
> selected files clicked upload.
>
> function uploadCompleteHandler(batchName){
>        //window.location = index.cfm?action=batchIndex&batchName="+batchName
>        alert('asdf');
>
> Ideas??
>
> Thanks!
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329326
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to