I have a form that I want to pass via POST, but without reloading the entire page, after submitting the information, I wanted a div to reload its content, I have the following code:
<script>
$(function()
{
$("#issuedButton, #expiredButton, #activeButton, #revokedButton").click(function(){
var dataString = $("#searchByTime").serialize();
$.ajax({
type: "POST",
url: "index",
data: dataString
});
$("#reload").load("index #reload");
return false;
});
});
</script>
POST is being sent, however, I do not know if reload is not being done, or is being done without updating the information with data received via POST. Follow the div:
<div id="reload">
<?php var_dump($this->searchbyorganization); ?>
</div>
You are in a var dump just for debugging. I use the Zend Framework, so the logic is in another controller class.