March 3rd, 2008, 07:39 PM
the concept is for initial load without a page to occupy it src.
so i basically just want to force a form into it and use the iframe later with the forced form.
when i try this, i get a blank iframe. but in view source, the content is there.. just not shown in the browser.
any tips? tricks?
March 3rd, 2008, 07:51 PM
Anything inside an <iframe> is only displayed when <iframe> elements are not supported.
March 3rd, 2008, 10:04 PM
i think i follow you, but im not sure.
i experimented and just used a <frame> and got the content to show up, but when i reference that frame by an achor via target the anchor opens up a new window. its not referring to the target frame. mind you this is set up without a frame set. is that legal?
there must be a way to force content into an iframe!
March 3rd, 2008, 10:14 PM
A <frame> may only be a child of a <frameset>. Hence why <frame>s and <iframe>s exist.
You have to create another page to load into the <iframe>.
Reasons to Avoid Frames and iFrames
Comments on this post
March 3rd, 2008, 11:06 PM
its an application, so i dont really have to follow strict public site etiquette - in fact the frame is a must! i just looking to veer away from the typical three frameset layout and make things a bit more dynamic. esp on initial load.
March 3rd, 2008, 11:19 PM
the best solution that i could come up with is to cache what i was trying to force into the frame and just have the src page grab that cache via db or session.
November 21st, 2013, 08:38 AM
I don't know how recent this post is but it seems you can use srcdoc tag for this without making another html page.
November 21st, 2013, 04:27 PM
Welcome to DevShed Forums, seemlesssrcdoc.
True. My response from March 3rd, 2008 was regarding HTML4. HTML5 does add the srcdoc attribute (not "tag").
Support for the srcdoc attribute is limited at this point, so I do not recommend its use for the time being. However, at least in theory, the src attribute can be used as a fallback for browsers that don't support the srcdoc attribute.
Last edited by Kravvitz; November 21st, 2013 at 04:30 PM.