Hi, guys.
I'm using ajax uploader component in company.
I have a trouble to develop like below.
<span class="Lbtn"><input type="button" value="Add" class='fncAdd' /></span>
<span class="Lbtn"><input type="button" value="Add2" class='fncAdd' /></span>
<span class="Lbtn"><input type="button" value="Add3" class='fncAdd' /></span>
<!-- ajax file upload view area -->
<input type="button" id='uploadbutton' />
<%=ViewData["uploaderhtml"] %>
<script>
$(function() {
$(".fndAdd").click(function() {
$("#uploadbutton").click();
});
}
</script>
I try to use multiple files upload function.
If I click uploadbutton directly, it works fine.
But if I click one of .fncAdd button, it shows "File browsing dialog has been blocked" dialog box.
(you know what this box is..)
Function works well. But I don't wanna see this box.
Plase let me know a way to solve this problem.
I'm using
ASP.NET MVC3
.NET Framework 4.0
jQuery
HTML5 doctype
IE8
Thanks.