"Print Button" script?????

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • debbyetex
    Sergeant Major

    • Apr 2006
    • 93

    "Print Button" script?????

    Looks like we have alot of viewers on this subject.
    To date.....218!

    I still haven't found a script that will print my "Menu Form" without looking horrible!

    If anyone has a script that will work properly please let me know.

    My "menu page" has many different food selections with little check boxes in front of them. When the customer "prints" the form, I need their food selections to print out properly.

    Any suggestions........let me know!

    My page is not more than the normal page width......however, it is very long.............more than (1) page.

    Thanks,
    Debbye


  • racefan20
    Major General

    • Jul 2005
    • 2335

    #2
    Re: "Print Button" script?????

    Put this code into an html box and see if it will work for you:

    <script language="JavaScript">
    function printPage() {
    if(document.all) {
    document.all.divButtons.style.visibility = 'hidden';
    window.print();
    document.all.divButtons.style.visibility = 'visible';
    } else {
    document.getElementById('divButtons').style.visibi lity = 'hidden';
    window.print();
    document.getElementById('divButtons').style.visibi lity = 'visible';
    }
    }
    </script>

    <div id="divButtons" name="divButtons">
    <input type="button" value = "Print" onclick="printPage()">
    <input type="button" value = "Close" onclick="JavaScript:window.close();">
    <hr noshade>
    </div>
    My NASCAR Forum

    Comment

    • debbyetex
      Sergeant Major

      • Apr 2006
      • 93

      #3
      Re: &quot;Print Button&quot; script?????

      Hey Racefan,
      It won't let me "save" the page - when I put that code in. So strange!

      Help,
      Debbye

      Comment

      • debbyetex
        Sergeant Major

        • Apr 2006
        • 93

        #4
        Re: &quot;Print Button&quot; script?????

        I was just looking on line and thinking................I sure would like to hear from "racefan"!!!!!!

        Thanks,
        Deb

        Comment

        • racefan20
          Major General

          • Jul 2005
          • 2335

          #5
          Re: &quot;Print Button&quot; script?????

          Originally posted by debbyetex
          Hey Racefan,
          It won't let me "save" the page - when I put that code in. So strange!

          Help,
          Debbye
          That is strange, because I'm able to save pages with no problem. Try putting it on a blank page and see if you can save it that way - it will at least narrow things down a little.
          My NASCAR Forum

          Comment

          • debbyetex
            Sergeant Major

            • Apr 2006
            • 93

            #6
            Re: &quot;Print Button&quot; script?????

            Yes.....You are right! I am (now) able to save it. Not sure what the problem was that gave me that error mesage????

            But anyway, I was able to save the page, publish it and then tried to "print" (nothing happened).

            Sorry,................any suggestions???? (let me know)
            Thanks,
            Debbye

            Comment

            • racefan20
              Major General

              • Jul 2005
              • 2335

              #7
              Re: &quot;Print Button&quot; script?????

              What's the url to the page?
              My NASCAR Forum

              Comment

              • debbyetex
                Sergeant Major

                • Apr 2006
                • 93

                #8
                Re: &quot;Print Button&quot; script?????



                Here ya go......Racefan!

                Thanks,
                Deb

                Comment

                • racefan20
                  Major General

                  • Jul 2005
                  • 2335

                  #9
                  Re: &quot;Print Button&quot; script?????

                  You're going to need a better script.. the one I gave you is designed to print from a text page, not from forms. Maybe Navaldesign will know a way to make it work for you. Sorry I couldn't help more than that.
                  My NASCAR Forum

                  Comment

                  • debbyetex
                    Sergeant Major

                    • Apr 2006
                    • 93

                    #10
                    Re: &quot;Print Button&quot; script?????

                    No problem!

                    Thanks so much for your effort!!!!!
                    Debbye

                    Comment

                    • debbyetex
                      Sergeant Major

                      • Apr 2006
                      • 93

                      #11
                      Re: &quot;Print Button&quot; script?????

                      Hi,
                      I'm still looking for a good "print script" that will print a form.
                      Any help on this will be greatly appreciated.

                      Thanks,
                      Debbye

                      Comment

                      • Andy128
                        Major General

                        • Dec 2005
                        • 2317

                        #12
                        Re: &quot;Print Button&quot; script?????

                        Debbyetx,

                        I have also looked and looked- still haven't found a suitable script.
                        Perhaps a redesign of the form page might be simpler. Maybe creating a form page that the page properties stay within 700 width (to allow all content to fit within a 8X11 sheet of paper).

                        Alternatively- I have found scripts that take the contents of a page and turn it printer friendly and then allow a print- but these are scripts that one has to pay for (thats why I suggest a re-design).

                        While your waiting- create a test sample one and test it out. Create a test folder on the server and upload it there to work on it.

                        Just a thought

                        Andy
                        PHP- is a blast!

                        Comment

                        Working...
                        X