Issue 80: How to print the nyro modal window
Status:  WontFix
Owner: ----
Closed:  Jan 2009
Reported by hameed.p...@gmail.com, Sep 11, 2008
I am not sure how to print just the modal window. My code is as below

      $(function() {
        $('#mapAndDirection').click(function(e) {
          e.preventDefault();
          $.nyroModalManual({
            url: 'test.php',
            modal: false,
            type: 'iframe',
            width: 1050,
            height: 700,
            resizeable: true
          });
      
          return false;
        });
      });


within the test.php I have the following html:

<p><a href="javascript:window.print()">print</a></p>
<p><img alt="" src="/images/map.jpg" /></p>

This just prints the whole window (the background page with the modal
window on the top).

Also I selected the type: 'iframe'

But the plugin seem to generate <div> s

Is that correct?

Thanks,
Hameed
Sep 20, 2008
Project Member #1 nyro...@gmail.com
I'm pretty sur you could do that only with css, by using the media="print" for a link
tag.
The ideally will be to hide everything except the modal content, and it will work.
That's mean you won't need the iframe stuff.
Sep 22, 2008
#2 hameed.p...@gmail.com
Thanks a lot for your reply. I will give it a go with the css to see how it works.
Jan 26, 2009
Project Member #3 nyro...@gmail.com
(No comment was entered for this change.)
Status: WontFix