Skip to content

Instantly share code, notes, and snippets.

@westonwatson
Created February 14, 2012 22:20
Show Gist options
  • Save westonwatson/1831022 to your computer and use it in GitHub Desktop.
Save westonwatson/1831022 to your computer and use it in GitHub Desktop.
javascript method to grab_leads for resellers
<script language="javascript" type="text/javascript">
jQuery.noConflict();
function fill_leads(reseller_id){
jQuery.getJSON('/resellers/grab_leads/' + reseller_id, function(data) {
jQuery.each(data, function(key, val) {
jQuery('#service_leads_' + reseller_id + '_' + key).html(val);
});
});
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment