Código Javascript:
Ver original
<script type="text/javascript"> $(document).ready(function(){ $("form.ajax-form").bind("submit", function(e) { e.preventDefault(); e.stopPropagation(); $.ajax({ cache: false, url : $(this).attr("action"), type: $(this).attr("method"), data: $(this).serializeArray(), success: function(data) { $.fancybox(data); } }); return false; }); }); </script>