when click open first window button popup opens,which contains text box. when copy url in popup , hit save saves sample pdf in grid, when refresh disappears.
is there anyway can permanently save in grid updating in grid?
my code follows, , available jsfiddle.
$("#save").click(function() { grid.datasource.add({ "filename": $("#fname").val(), "threedots": "last name" }); $("#fname").val(''); });
you getting value of #fname
never gets updated. file input here #batchfile
.
also, want strip path value, , file name only. can
.replace(/.*[\/\\]/, '')
see here: jsfiddle.
$("#save").click(function() { var f = $('#batchfile').val(); f = f.replace(/.*[\/\\]/, ''); grid.datasource.add({ "filename": f, "threedots": "last name" }); });
Comments
Post a Comment