Skip to content

Instantly share code, notes, and snippets.

@ddailey
Created March 2, 2012 22:37
Show Gist options
  • Save ddailey/1961949 to your computer and use it in GitHub Desktop.
Save ddailey/1961949 to your computer and use it in GitHub Desktop.
Attach mPath call to link
1 $("div#downloads a").click(function() {
2 $.ajax({
3 url:"http://mycompany.conductrics.net/mpath/api",
4 data: {
5 "verb": "send-reward",
6 "goal": "download",
7 "agent": "sample-agent-1"
8 },
9 dataType: "jsonp"
10 });
11 return false;
12 });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment