title: Extracting the url variable from an iFrame
body: <p>I'm using the Bits-on-the-run API to upload videos using <a href="http://www.longtailvideo.com/support/bits-on-the-run/15984/upload-videos-within-your-cms" rel="nofollow">these instructions</a>, the thing is I have to include the upload form into an iframe, the upload form will upload the video and after it finishes it will redirect to another page with the video id as a url variable.</p>
  
  <p>What I'm trying to do is to get that url variable from the iframe when the upload finishes.</p>
  
  <p>Here's the iframe example:</p>
  
  <pre><code>&lt;iframe width="650" scrolling="auto" height="220" frameborder="0" src="http://developer.longtailvideo.com/botr/demo/upload/"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>when the uplaod finishes, the iframe redirects to:</p>
  
  <pre><code>&lt;iframe width="650" scrolling="auto" height="220" frameborder="0" src="http://developer.longtailvideo.com/botr/demo/upload/show.php?video_key=xxxxx"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Such that xxxxx is the video key I want to extract in the parent page, I'll use this video key in a hidden input in order to submit another form.</p>
  
  <p>Is tehre a way I can get this url variable when the redirect happens?</p>