Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    yos
    yos is offline
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help! printing issuses in kiosk mode.

    Hi,
    in my site that works on an information kiosk i have a printing option (silent printing, kiosk mode),
    the thing is the printing takes some time and pepole keep pressing the print button and jaming the printer,
    how can i make a pop-up when they print that will stay open for like 20 seconds
    and simpley says "please wait for your print...).
    thanks alot in advance.

  • #2
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,513
    Thanks
    3
    Thanked 504 Times in 491 Posts
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
      <title></title>
    <style type="text/css">
    /*<![CDATA[*/
    #pop {
      position:absolute;visibility:hidden;left:100px;top:100px;height:100px;width:200px;background-Color:red;
    }
    
    /*]]>*/
    </style><script type="text/javascript">
    /*<![CDATA[*/
    
    function Print(){
     var obj=document.getElementById('pop');
     if (obj.style.visibility!='visible'){
      obj.style.visibility='visible';
      // call the print function here
      setTimeout(function(){  obj.style.visibility='hidden'; },20000);
     }
    }
    /*]]>*/
    </script></head>
    
    <body>
    <input type="button" name="" value="Print" onmouseup="Print();" />
    
    <div id="pop" ></div>
    </body>
    
    </html>
    Vic

    God Loves You and will never love you less.

    http://www.vicsjavascripts.org/Home.htm

    If my post has been useful please donate to http://www.operationsmile.org.uk/


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •