Then you could use this:

$(function(){
        $("a").click(function(){
               $.get($(this).attr("title"));
               return true;
        });
});

and have your anchors look like this:

<a href="whateverURL" title="trackingURL">Text here</a>

Function passed to click() scope "this" to the current element, in your case
an anchor.

- jake

On 3/6/07, Yoav Shapira <[EMAIL PROTECTED]> wrote:

Hi,


On 3/6/07, Jake McGraw <[EMAIL PROTECTED]> wrote:
> Have you tried something like:
>
> $(function(){
>         $("a").click(function(){
>                $.get("trackingURL");
>                return true;
>         });
> });

I haven't tried that, but I will.  It will be a little annoying
because there are numerous such links and each one with its own
different trackingUrl.  Thanks,

Yoav

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to