[Pro] Navigation Popup and iFrame

Hi All,

After trying to use the Nav Popup action to change the url of an iFrame on the same page, I am coming to the conclusion that this action can not target iFrames.

Am I missing something, and if not, is there some other way to do this.

Thanks,

-ss


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Nevermind… figured it out.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hmmm… spoke too soon. This is working as expected when previewing locally in Safari, but not when I upload the files to the server (in which case the content is being loaded in a new page - and not in the iFrame).

I have checked the html on the server and locally and it is the same… so I’m stumped.

url = http://applemountaingolfresort.com/instruction/index.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

So are you trying to target different YouTube content into one iFrame on your page?

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yup. And it works locally. But after poking around in Safari’s console it seems Safari considers this a security issue:

“Unsafe JavaScript attempt to access frame with URL http://www.youtube.com/embed/dqDIEonEjJg?rel=0&autoplay=1 from frame with URL http://applemountaingolfresort.com/instruction/. Domains, protocols and ports must match.”

Guess I am going to have to create a page for each youtube video; which seems silly but WTH.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Have you tried ScriptyLightbox

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

How would I do that from a popup?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I am forgetting that you want to use YouTube content - I don’t think ScriptyLb is doable with external content like that.

Are you stuck on the Pop Up for the links? With a normal link from a graphic(s) you could use Target Show/Hide Layer with the 4 vids in 4 layers using the YouTube action.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

D,

There will eventually be 20 or more lessons. I felt the simplest way to handle it would be to just add a popup item and url each time one is added. Since that won’t work due to Safari security concerns it seems it is simpler to just use a master page for the popup and just add another page for each youtube url (in fact, I have already implemented it).

I think managing that number of layers with show/hide would end up being kind of cumbersome; but thanks for the suggestion.

-ss


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You can do ScriptyLightbox with YouTube content, I posted an explanation of how to do that a while ago. It does involve you getting the YouTube URL in a particular manner, but it’s very do-able.

Basically, YouTube has a version of their embed code available that uses an iframe, so all you need to do is grab that version of the code, but strip off the outer iframe code itself, leaving only the src attribute value. Use that as your link URL, and you’re all set.

So if YouTube has an embed code that looks like this:

<iframe src="http://youtube.com/some/link/here" width='400" height='300"></iframe>

What you would do is strip that down to just this:

http://youtube.com/some/link/here

paste that into the URL field of Freeway’s Hyperlink dialog, and you’re done.

Walter

On Nov 27, 2011, at 7:49 PM, DeltaDave wrote:

I am forgetting that you want to use YouTube content - I don’t think ScriptyLb is doable with external content like that.

Are you stuck on the Pop Up for the links? With a normal link from a graphic(s) you could use Target Show/Hide Layer with the 4 vids in 4 layers using the YouTube action.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options