Hi everyone,
Thanks for the help. I ended up using Chris's example. It didn't work
at first so I changed the code. Here is the finished jQuery code in
case anyone is interested :
$(document).ready(function() {
$("a.adtrack").click(function(){
//Get url of image advert
var adURL = $("a.
window.location = trackURL + $(this).attr('href');
return false;
});
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Smith, Allex
Sent: Tuesday, December 11, 2007 12:10 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Using
Hi
This topic is very interesting.
I would like to recommend Cesar Rodas. I will study this ASAP.
http://www.phpclasses.org/browse/package/4012.html
He have a class to track clicks without AJAX.
He is using an image tag.
He said to me
"The image tag is quite simple, is for emulate an AJAX re
I'm not an expert with jQuery, but I think something like this might do the
trick..
$("a.adtrack").click(function(){
// Get url of advert
var adURL = $(this).attr("href");
// Log click to database
$.ajax({
type: "GET",
url: "/path/to/tracking/script.asp",
data
I'm a bit confused as to exactly what you want to do, but try something
like this...
In your html:
http://www.advertlink.com"; title="Some Ad to an Adverts page"
class="advert">Click me I'm an Advert!
Then in your jQuery on load:
// this would be a link to your server side tracking
var trackURL
5 matches
Mail list logo