Getting the URL of an iFrame cross domain and protocol in jQuery
<p>I am basically creating an external shopping cart system for users on my site that will lead to a secure system that I am paying for, and in their shopping pages, they auto-generate a PHP GET variable called <code>CFTOKEN</code> that I need to access so I can send cart updates.</p>

<p>I am loading an iframe with the URL that redirects to the shopping cart with the <code>CFTOKEN</code> variable in the URL. I need to get this variable in javascript so I can send updates to the cart. </p>

<p>I have tried accessing the URL by the following code:</p>

<pre><code>$("#iframe").contents().get(0).location.href
</code></pre>

<p>but I not only get a cross domain error, I get <code>undefined</code> for the location.</p>

<p>How can I get the URL?</p>
