Created
April 29, 2013 19:19
-
-
Save gilvam/5483998 to your computer and use it in GitHub Desktop.
regarregar pedaços html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($_POST['btnSalvar']) | |
{ | |
try | |
{ | |
echo '<h1>btnSalvar Uhulllll!</h1>'; | |
} | |
catch (Exception $exception) | |
{ | |
echo $exception->getMessage(); | |
} | |
} | |
?> | |
<form id="frmEditarConsulta"> | |
<input placeholder="texto" type="text" name="txtData" title="digite algo" class="required" /> | |
<input type="submit" value="Salvar" name="btnSalvar" id="btnSalvar"> | |
</form> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$("#frmEditarConsulta").validate({ | |
submitHandler: function() { | |
$.post( | |
'ajaxSolicitacaoProcessar.php', | |
$('#frmEditarConsulta').serialize(), | |
function(e){ $.facebox(e) } | |
); | |
} | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment