/    Sign up×
Community /Pin to ProfileBookmark

Serial Port Browser Plug-In?

Does anyone know of a browser plug-in that will let JavaScript directly address a serial port from my browser?

I want to write a browser based point of sale system, and need to send a receipt to a receipt printer on completion of sale. This raises some major hurdles.

First, there are very few such printers with Windows drivers. Most are serial printers that require a printer string to be sent directly to the serial port.
Second, by directly addressing the port, I would be bypassing the windows print manager, saving time while the print dialog loads, and a mouse click to actually send the document.

Finally, windows print requests are page based, and are not designed for printing on continuous rolls. If I could simply address the serial port, and send character strings and cr/lf commands, it wouldn’t matter how long the receipt was. It would just keep printing until it received the end of print command.

Any suggestions?

CTB

to post a comment
Full-stack Developer

2 Comments(s)

Copy linkTweet thisAlerts:
@Stephen_PhilbinOct 17.2005 — Don't think you can. For security reasons Javascript has a very limited sphere of influence in a persons PC (usually referred to as a sanbox or the like).
Copy linkTweet thisAlerts:
@chestertbauthorOct 17.2005 — Thanks Stephen.

I guess I was just hoping that someone, somewhere had written a browswer plug-in or activeX control that would do the job, but after hours of trawling search engines, I think I'll give up and find a windows compatible receipt printer that will do the job.

Cheers (he says, feeling rather depressed and defeated)

CTB
×

Success!

Help @chestertb spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...