Click here to Skip to main content
15,905,427 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900