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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mayur2007
    New Member
    • Aug 2007
    • 67

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

    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
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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).

    Comment

    • Mayur2007
      New Member
      • Aug 2007
      • 67

      #3
      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?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        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)

        Comment

        • gsivaprabu
          New Member
          • Jul 2014
          • 3

          #5
          Hi Dormilich,

          Are you got a solution for that.If u got any script means please share to me.

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            The Web Bluetooth API provides the ability to connect and interact with Bluetooth Low Energy peripherals.

            Comment

            • gsivaprabu
              New Member
              • Jul 2014
              • 3

              #7
              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.

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                can’t you print it regularly (like opening the print dialog from your browser)?

                Comment

                • gsivaprabu
                  New Member
                  • Jul 2014
                  • 3

                  #9
                  Hi Dormilich,

                  In mobile Browser no print option is there.

                  Comment

                  • Dormilich
                    Recognized Expert Expert
                    • Aug 2008
                    • 8694

                    #10
                    then chances are that you cannot print from a mobile browser at all.

                    Comment

                    • Rabbit
                      Recognized Expert MVP
                      • Jan 2007
                      • 12517

                      #11
                      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.

                      Comment

                      Working...