Posts

Showing posts from October, 2012

JDK 7 With Netbeans: FTP Problem With Windows Firewall

this is work for me, and hope it work for you too, open MS-DOS with administrator rights and paste this, then press enter : netsh advfirewall set global StatefulFTP disable reference : http://www.kubilayerdogan.net/?p=89#comment-646

how to get keyCode, which, charCode property with jquery

<html> <head> <title>charCode/keyCode/which example</title> <script type="text/javascript"> function showKeyPress(evt) { alert("onkeypress handler: \n" + "keyCode property: " + evt.keyCode + "\n" + "which property: " + evt.which + "\n" + "charCode property: " + evt.charCode + "\n" + "Character Key Pressed: " + String.fromCharCode(evt.charCode) + "\n" ); } function keyDown(evt) { alert("onkeydown handler: \n" + "keyCode property: " + evt.keyCode + "\n" + "which property: " + evt.which + "\n" ); } </script> </head> <body onkeypress="showKeyPress(event);" onkeydown="keyDown(event);" > <p>Please press any key.</p> </body> </html>  Demo

print another page from the current page

already tested. $(document).ready(function(){ $('#printButton').click(function(evt) { evt.preventDefault(); $('body').append('<iframe src="document_to_be_printed.php?param=value" id="printIFrame" name="printIFrame"></iframe>'); $('#printIFrame').bind('load', function() { window.frames['printIFrame'].focus(); window.frames['printIFrame'].print(); } ); }); }); reference : http://stackoverflow.com/questions/580781/how-to-print-another-page-from-the-current-page