Skip to content

Instantly share code, notes, and snippets.

@abdullahbutt
Created January 30, 2014 14:48
Show Gist options
  • Select an option

  • Save abdullahbutt/8710076 to your computer and use it in GitHub Desktop.

Select an option

Save abdullahbutt/8710076 to your computer and use it in GitHub Desktop.
ajax call sample
function fetchFilteredRecords(val)
{
if(val=="custom")
{
$("#custom_filtering").show();
}
else
{
$("#custom_filtering").hide();
$.ajax({
type:"POST",
url:"filter/campaign_filter.php",
data:"filter="+val,
success: function(html)
{
$("#box_content_manage_advertiser").html(html);
}
});
$.blockUI({ css: {
border: 'none',
padding: '50px',
opacity: .5,
color: '#fff',
background: 'url(http://admin.activemobile.com/mx/img/spinner.gif) no-repeat 10px 10px'
} });
setTimeout($.unblockUI, 1000);
}
}
<script>
function FetchSite()
{
$.ajax({
type:"POST",
url:"http://panel.activemobile.com/advertiser/advertiser_manage_campaign2.php?p=manage-campaign",
data:"filter=",
success: function(html)
{
$("#div_box").html(html);
}
});
//alert('i am here');
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment