printing - Print function on jQuery SimpleModal -


i'm using basic modal dialog here http://www.ericmmartin.com/projects/simplemodal-demos/ , inside of dialog, have image add print button below it.

i've tried using jqprint doesn't work. there i've missed?

my popup dialog

<div id="popup_name" class="popup_block"> <div class="map"><img src="images/map.png"></div> <br><a href="#" id="print"><img src="images/print.png"></a> </div> 

jqprint

$("#print").click( function() {  $('.map').jqprint();  });  </script>  

imp: jqprint() plug-in, add proper reference file. try putting click function in document.ready, should work fine then.

$(document).ready(function () { $("#print").click( function() {  $('.map').jqprint();  }); }); 

i have tested this, works fine.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -