in reply to Grabbing url from iframe

I'm adapting these for a mobile version of the site.

youtube already has a mobile version of the site

Replies are listed 'Best First'.
Re^2: Grabbing url from iframe
by htmanning (Friar) on Feb 12, 2011 at 01:36 UTC
    What I'm trying to do is either present a smaller screencap of the video for the mobile site, or not show the video at all and present a link to YouTube. Either way I have to grab the url. I've tried doing some substitutions but I can't seem to get it right. I've tried splitting up the code and putting sections into an array, but I must be doing something wrong.