Topic: iFrame vs embed

Are there any specific considerations or benefits/disadvantages of using the embed code vs an iFrame to embed a gallery into a page?  It is important that my gallery work with normal browsers and mobile devices.  As for a site creation tool, I am working with iWeb.  I've defined an HTML Snippet area on my page the size of the gallery.  From there, I can either use the embed code or insert an iFrame reference to the SV-Pro Builder created index file.  Currently I have the embed code on the live pages, but I tried the iFrame on a test page and didn't see any difference (quick test).  Any reason I should use one method over the other, or any things to consider as trade-offs?

Thanks.

Pete

Re: iFrame vs embed

We recommend using the embed code snippet over the iFrame embed where possible. When embedding the Mobile Player in an iframe, the 'fullscreen' and 'open image' buttons are disabled. http://www.simpleviewer.net/simpleviewe … l#external

Felix Turner
SimpleViewer Support Team.

Re: iFrame vs embed

Thanks for the reply.  That explanation makes sense the way that you describe it.  I think this reveals the source of a problem I've been having with respect to the 'fullscreen' button in the mobile browser...

My site is built in iWeb with the embed code entered into an HTML Snippet.  With SV-Pro Builder, I disabled the 'open image' button but I did include the 'fullscreen' button.  It works as expected in full browsers w/ flash.  However. the mobile version does not show the fullscreen button -- I'd love to get that to work, if possible.  I think that iWeb is effectively treating the embed code (HTML Snippet) as an iFrame (the page code does not use an iFrame tag as it uses div's instead, but maybe it is effectively the same thing)?

here is a link to the full page and then the HTML Snippet file:

http://www.petershermanphotography.com/ … dings.html  <-- Normal page with HTML Snippet used to embed the gallery.

http://www.petershermanphotography.com/ … arkup.html  <-- HTML Snippet itself (aka embed code), not actually embedded in the normal page.

Is there any way to get the 'fullscreen' option on mobile browsers to work properly when it is embedded via the HTML Snippet onto the normal page (i.e. the first link)?

Thanks!

Re: iFrame vs embed

http://www.petershermanphotography.com/ … dings.html

I've not encountered that method of embedding a HTML page inside another before. SimpleViewer is assuming it's inside an iframe and so is disabling the fullscreen and 'open image' buttons for mobile. If you want fullscreen button for the mobile player try using a normal HTML embed.

Felix Turner
SimpleViewer Support Team.

Re: iFrame vs embed

Felix - love the quick and knowledgable answers!! Anyway, based on our conversation in this thread, that's what I thought the answer would be - iWeb treating the embed as an iFrame and therefore causing SV to disable the mobile full screen button.  Bummer, actually, because iWeb '08 and '09 both handle HTML code embedding in this iFrame (or pseudo iFrame) manner, which means that the options are to either live with it or manually modify the code (which would need to be done anytime the page changes).

That said, I'll turn this into a feature request (assuming there is no technical reason that it cannot be done)... in a future version, it would be great to see an option in the mobile player that can enable/disable the mobile full screen mode when in an iFrame (or pseudo iFrame).  Hopefully the request makes sense and is possible.  Maybe something for 2.1.3 or 2.1.4.

Thanks again!

Pete