javascript - updating the new values in the services -


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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -