igUpload - upload large file hover cancel button
by georgianastasov
HTML
<script src="https://igniteui.com/js/modernizr.min.js"></script>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
<script src="https://cdn-na.infragistics.com/igniteui/latest/js/infragistics.core.js"></script>
<script src="https://cdn-na.infragistics.com/igniteui/latest/js/infragistics.lob.js"></script>
<link href="https://cdn-na.infragistics.com/igniteui/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet"></link>
<link href="https://cdn-na.infragistics.com/igniteui/latest/css/structure/infragistics.css" rel="stylesheet"></link>
<div id="igUpload1"></div>
<div id="error-message" style="color: #FF0000; font-weight: bold;"></div>
JavaScript
$(function () {
$("#igUpload1").igUpload({
mode: 'multiple',
autostartupload: true,
progressUrl: "https://igniteui.com/IGUploadStatusHandler.ashx",
controlId: "serverID1",
onError: function (e, args) {
showAlert(args);
}
});
});
function showAlert(args) {
$("#error-message").html(args.errorMessage).stop(true, true).fadeIn(500).delay(3000).fadeOut(500);
}