1 Reply Latest reply on Jul 5, 2007 7:15 AM by c_wigginton

    CFDocument Alert

    SHAREMaster


      I would like to set up a pop-up message for flashpaper documents generated from cfdocument. The message would say something like "For best printing click the printer icon at the right end of the silver bar." I have far too many users who use "File > Print" and get a poor quality result.

      So, I want the alert message to appear on top of the flashpaper document. I'm betting it has to be done in actionscript if it's possible at all.

      Has anyone done this??
        • 1. Re: CFDocument Alert
          c_wigginton Level 1
          If the user initiates the action to retrieve the cfdocument generated flashpaper doc, you could deliver the popup prior to the trip to the server. i.e.

          <script>
          function bestPrint(doc_id){
          alert("For best printing click the printer icon at the right end of the silver bar");

          document.location.href= "getDocument.cfm?document_id=" + doc_id;
          }
          </script>

          then instead of a direct link back, call a function, either through a button onClick event or an href.
          <cfoutput>
          <a href="##" onClick="bestPrint(#document_id#);">#docDescription#</a>
          </cfoutput>