通过JavaScript检索所有已安装打印机的列表 [英] Retrieving list of all installed printers via JavaScript

查看:772
本文介绍了通过JavaScript检索所有已安装打印机的列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从一个网页截图中获得了一个屏幕截图,该屏幕截图显示了组合框中客户端可访问的所有已安装打印机的列表(本地和网络打印机),并允许用户选择一个.甚至还有一个按钮可以刷新列表!

I have been given a screenshot from a web page which shows the list of all installed printers accessible by the client (local and network ones) in a combobox and let user select one. Even there is a button to refresh the list!

我无权访问该页面,因此无法证明其功能.甚至有可能通过网页上的任何方式执行此操作或模拟此工作吗?

I do not have access to the page and cannot prove the functionality. Is that even possible to do this or simulate this job by any means in a web page?

推荐答案

如果我不得不冒险猜测,我会说这很可能是通过某些服务器端代码检索的网络打印机列表. 刷新"按钮似乎支持这一点,因为显然正在使用AJAX.简而言之,尽管没有办法通过JavaScript在客户端获得此信息,所以还必须进行其他事情.

If I had to hazard a guess, I'd say that it's most likely a list of network printers, retrieved via some server-side code. The "Refresh" button seems to back that up as there's obviously AJAX at play. Simply, though, there's no way to get this information client-side via JavaScript, so there's got to be something else going on.

这篇关于通过JavaScript检索所有已安装打印机的列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆