Hi,
On 3/7/07, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> var track = {
> 'whateverUrl1': 'trackingUrl1',
> 'whateverUrl2': 'trackingUrl12'
> }
>
> $(function() {
> $("a").click(function() {
> $.get(track[this.href]);
> return true;
> });
> });
>
> Besides, if you leave the page, there's no guarantee that the track
> request is indeed send to the server and not aborted on unload.
Good idea and good tip, thanks. I think that's why adding the
async:false flag made it work reliably, whereas by default
(async:true) it only worked sometimes.
Yoav
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/