iFrame without src attribute

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RuthC
    New Member
    • Nov 2007
    • 33

    iFrame without src attribute

    Hi,
    Is there a chance to use an iframe without the "src"-attribute?
    Can I put the source code inside the <iframe></iframe> tag?
    I just need an area with scrollbars without an externel document.

    [CODE=html]
    <div class="tabbody" id="t2" style="display: none ">
    <iframe id="ifrm" height="100px" scrolling="yes" width="500" style="backgrou nd-color:transpare nt">
    {section name=page loop=$user_page s}
    <table border="0" width="100%" cellpadding="0" cellspacing="0" >
    <tr><td > <a href="http://{$SITE_HOST}/page/{$user_pages[page][5]}/" class="index_pa ge_link">{$user _pages[page][7]|capitalize}</a></td></tr>
    <tr><td class="index_pg e">{$user_pa ges[page][6]}&nbsp;.....< a href="http://{$SITE_HOST}/page/{$user_pages[page][5]}/" class="index_pa ge_link" style="font-size:10px; ">More <small>>></small></a></td></tr>
    <tr><td style="border-bottom:1px dotted silver ">&nbsp;</td></tr>
    </table>{/section}
    </iframe>
    </div>

    [/CODE]

    Thank you
    Ruth
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    Originally posted by RuthC
    Is there a chance to use an iframe without the "src"-attribute?
    You will get a validation error.
    Can I put the source code inside the <iframe></iframe> tag?
    This is also invalid and the markup won't be used. If you mean your programming language, I don't know. You need to ask on that board.
    This is possible with a <div>.

    Comment

    Working...