Hello I am trying to refresh my page using ajax. Here is the code:
<script>
function reld_email_posts() {
$("#loading").fadeIn();
$.ajax({
type: "POST",
url: "xpostings.php",
data: dataString,
success: function(){
$("#loading").fadeOut();
}
}
</script>
<input type="button" name="" id="" onclick="reld_email_posts()" value="Refresh Records" />
Its kind of geared towards the right direction but its needs more. Does anybody know how I can refresh my page using ajax?