I have a sendData.JSON.aspx page that sends data to the textfile called Print.txt. but i want to Print only data that is selected on my web-browser page/HTML PAGE ,NOTE on that web-browser page the DATA is selected on a TABLE . and i have a checkbox column so i want to print all selected ROWS accordingly. Here is my code to print:
function printSelected()
{
var selecteditems = hesto.ui.getselecteditems('#scannedlabeltable');
$.each(selecteditems, function (i, item) {
$.ajax({
url: SEND_TO_TEXTFILE_PAGE
, data: "serial=" + item.id
, datatype: 'json'
, success: function (status) {
if (status.error) {
alert(status.error);
}
}
, error: hesto.ajax.errorhandler