)  {     var param = {         subjectName: $("#ipName").val(),         subjectID: $("#DocSubject").val(),         typeID: $("#DocType").val(),         year: $("#ipDate").val(),         data: dataURL.substr(dataURL.indexOf(',') + 0, dataURL.length)  };   Handler("Json", param, "UploadData"); } var dataURL; var handleFiles = function (event) {      var input = event.target;      var reader=new FileReader();     reader.onload=function(){          dataURL=reader.result;         var output=document.getElementById('ipSelect');         output.src=dataURL;     