Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <title>Safari test for digg</title> <script src="http://harlan.winelibrary.com/scripts/jquery.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" charset="utf-8"> // using jquery 1.2.1 $j = jQuery.noConflict(); $j(document).ready(function(){ $j('#form1').submit(function(event) { event.preventDefault(); $j.post($('#form1').attr("action"),{a:"one", b:"two"}, function(res) {alert(res);}); }); }); $j(document).ready(function($){ $j('#form2').submit(function(event) { event.preventDefault(); $j.post($('#form2').attr("action"),{a:"one", b:"two"}, function(res) {alert(res);}); }); }); </script> </head> <body> <form id="form1" action="http://metaatem.net/digg_go.php" method="POST"> <input type="submit" /> </form> <form id="form2" action="http://metaatem.net/digg_go.php" method="POST"> <input type="submit" /> </form> </body> </html>
From the Design Piracy series on my blog: