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.
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.
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.
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.
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:
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.