Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Ajax Uploader
»
Re: Ajax Uploadewr in MVC
Ajax Uploadewr in MVC
Last post 05-05-2010, 9:17 PM by
hassan
. 2 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
05-05-2010, 8:25 PM
60759
hassan
Joined on 07-21-2008
Posts 43
Ajax Uploadewr in MVC
Reply
Quote
We are using the uploader in an MVC app. When we upload a file, the file gets posted to the temp directory but after executing the handler, it does not return to our action method so that we can do our processing. Any ideas?
Many thanks
05-05-2010, 8:55 PM
60760
in reply to
60759
cutechat
Joined on 07-22-2004
Posts 2,332
Re: Ajax Uploadewr in MVC
Reply
Quote
Hi,
You can use javascript API to catch the event.
http://ajaxuploader.com/document/scr/JavaScript-API.htm
add this script into your page :
<script>
function CuteWebUI_AjaxUploader_OnPostback()
{
var uploader=this;
//guid list splited by '/'
alert(uploader.value);
//todo: submit your page here.
return false;
}
</script>
Regards,
Terry
05-05-2010, 9:17 PM
60761
in reply to
60760
hassan
Joined on 07-21-2008
Posts 43
Re: Ajax Uploadewr in MVC
Reply
Quote
Many Thanks Terry. This worked.