jQuery ajax post dynamic url insertion
<pre><code>$.ajax({ type: "POST", url: "OMFG.php", data: info, success: function(){ }});
</code></pre>

<p>is what I'm using atm as a test and it works fine. </p>

<p>I need to get the url from the link I'm clicking, so I do:</p>

<pre><code>var url = $(this).attr("href");
</code></pre>

<p>which works fine if I alert it out(the link includes <a href="http://samedomain.com/etc.php" rel="nofollow">http://samedomain.com/etc.php</a>), but the ajax function doesn't post if I insert it into the ajax code:</p>

<pre><code>$.ajax({ type: "POST", url: url, data: info, success: function(){ }});
</code></pre>

<p>Please help, as I'm screwed without this working.</p>
