By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,251 Members | 2,760 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,251 IT Pros & Developers. It's quick & easy.

Print mobile website page using html5 / javascript / php / ajax

P: 67
Hello,

I want to take a print of web page using mobile blue-tooth.
How can we do that?
My mobile site contains HTML5. Can somebody please help me?

regards,
Mayur
Sep 13 '11 #1
Share this Question
Share on Google+
10 Replies


Dormilich
Expert Mod 5K+
P: 8,639
Bluetooth is only a data transmission standard and as such not concerned by your problem (printing a webpage). essentially, you only need the/your browser to tell that it should print the page somewhere (which may be a printer connected through Bluetooth).
Sep 13 '11 #2

P: 67
Thanks for the reply..

So suppose in my page If javascript print button is available (document.print) and I am pressing through mobile then it will print right?

One more question can we check available bluetooth devices using HTML5 / php / javascript?
Sep 13 '11 #3

Dormilich
Expert Mod 5K+
P: 8,639
One more question can we check available bluetooth devices using HTML5 / php / javascript?
not that I know of, since this is usually done on OS-level (which HTML5/PHP/JS do not have access to)
Sep 13 '11 #4

gsivaprabu
P: 3
Hi Dormilich,

Are you got a solution for that.If u got any script means please share to me.
Jul 11 '14 #5

gsivaprabu
P: 3
Hi Dormilich,

I have the website like this http://thermal.simply-logic.com/

If i click the View button means the bill displayed .

If i click the Print button means the div id=contents table format print in thermal printer. How is possible i cant get clear idea.

That website is bootstrap and PHP&MYSQL. Please suggest any article or sample codings. Thanks in Advanced.
Jul 11 '14 #7

Dormilich
Expert Mod 5K+
P: 8,639
can’t you print it regularly (like opening the print dialog from your browser)?
Jul 11 '14 #8

gsivaprabu
P: 3
Hi Dormilich,

In mobile Browser no print option is there.
Jul 11 '14 #9

Dormilich
Expert Mod 5K+
P: 8,639
then chances are that you cannot print from a mobile browser at all.
Jul 11 '14 #10

Rabbit
Expert Mod 10K+
P: 12,359
The whole printing from a mobile phone issue is an OS/browser issue. If they don't support printing, no amount of javascript is going to get you around that foundational issue.

The newer versions of android however do support printing from the mobile chrome browser.
Jul 11 '14 #11

Post your reply

Sign in to post your reply or Sign up for a free account.