Printing the content in shadowbox/thickbox/lightbox

Discussion in 'JavaScript' started by papilindo701, Nov 7, 2008.

Thread Status:
Not open for further replies.
  1. #1
    Hey how's it going? I am using the shadowbox technology to display information on my site. I put all those in the title because they are similar. I want to print the content in the modal box that pops-up... that contest exclusively. Any help would be appreciated and keep in mind I have never messed with javascript before so plz give in lehmans terms. Thanks in advance folks !!!
     
    papilindo701, Nov 7, 2008 IP
  2. rene7705

    rene7705 Peon

    Messages:
    233
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    it's a technical solution you're asking for, so no laymans terms here

    first u'd need firebug or IE8 to find the DOM node that represents the modal box.
    Then you'd select that DOM node using a javascript base library (like jQuery or MooTools, etc) or document.getElementById() if it has a unique .id
    Then you can copy modalBoxElement.innerHTML to a new window (google "javascript open new window"), and call up the print dialog (google "javascript print dialog") and print it, then close that window again.
     
    rene7705, Nov 11, 2008 IP
Thread Status:
Not open for further replies.