如何从Web浏览器/ HTML PAGE表打印选定的ROWS? [英] How do i Print selected ROWS from web-browser/HTML PAGE table?
问题描述
我有一个sendData.JSON.aspx页面,它将数据发送到名为Print.txt的文本文件中。但我想只打印在我的Web浏览器页面/ HTML PAGE上选择的数据,在该Web浏览器页面上注意在TABLE上选择DATA。我有一个复选框列,所以我想相应地打印所有选定的ROWS。这是我打印的代码:
函数printSelected()
{
var selecteditems = hesto.ui .getselecteditems(''#scanninglabeltable'');
$ .each(selecteditems,function(i,item){
$ .ajax({
url:SEND_TO_TEXTFILE_PAGE
,数据:serial =+ item.id
,数据类型:''json''
,成功:功能(状态){
if(status.error){
alert(状态。 ()
}
}错误:hesto.ajax.errorhandler
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
推荐答案
.each(selecteditems,function(i,item){
.each(selecteditems, function (i, item) {
.ajax({
url:发送_TO_TEXTFILE_PAGE
,数据:serial =+ item.id
,数据类型:''json''
,成功:功能(状态){
if(status.error){
alert(status.error);
}
}
,错误:hesto.ajax.errorhandler
.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
这篇关于如何从Web浏览器/ HTML PAGE表打印选定的ROWS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!