Re: [jQuery] Using $.get in a link's onClick event

2007-03-07 Thread Yoav Shapira
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

[jQuery] Using $.get in a link's onClick event

2007-03-06 Thread Yoav Shapira
Hi, I have a simple link in my HTML page that I want to track when users click on. I thought this would be pretty simple, like so: a href=destinationUrl onClick=$.get('trackingUrl'); return true;Destination/a When I run the above code, I get no errors, but trackingUrl doesn't get hit. There's

Re: [jQuery] Using $.get in a link's onClick event

2007-03-06 Thread Yoav Shapira
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

Re: [jQuery] Using $.get in a link's onClick event

2007-03-06 Thread Yoav Shapira
Hi, On 3/6/07, Jake McGraw [EMAIL PROTECTED] wrote: 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

Re: [jQuery] Window property error with ThickBox

2006-10-08 Thread Yoav Shapira
transitional doctype. For testing purposes I changed the page to be valid XHTML 1.0 transitional, but the behavior is the same. Again, thanks for an awesome product in jQuery, I love it. Yoav On 10/7/06, Yoav Shapira [EMAIL PROTECTED] wrote: Hi, Using the latest jquery just downloaded from

[jQuery] Window property error with ThickBox

2006-10-08 Thread Yoav Shapira
Hi, Using the latest jquery just downloaded from the jquery.com, and the latest ThickBox (2.1 I believe, just downloaded from http://jquery.com/demo/thickbox/), I get an error message on Firefox 1.5.0.8 on Windows XP when trying to do the simplest ThickBox example. The error is a JavaScript alert