Created
February 14, 2013 12:57
-
-
Save bitmorse/4952575 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".result a").click(function(){ | |
hrefa = $(this).closest('.result').children('a').context.href; | |
dsid = $(this).closest('.result').attr('rel'); | |
resc = ''; //set this to the result count | |
$.ajax({ | |
async: false, | |
type: "POST", | |
url: "/ajax/logQueryResultClick", //dynamic url to logging action | |
data: { | |
dsid: dsid, | |
hrefa: hrefa, | |
resc: resc | |
}, | |
contentType: "application/x-www-form-urlencoded; charset=UTF-8", | |
cache: false | |
}); | |
return true; | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment