471,610 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,610 software developers and data experts.

iFrame without src attribute

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

Expand|Select|Wrap|Line Numbers
  1. <div class="tabbody"  id="t2" style="display:none ">
  2. <iframe id="ifrm" height="100px"  scrolling="yes" width="500" style="background-color:transparent">
  3.  {section name=page loop=$user_pages}
  4.  <table border="0" width="100%" cellpadding="0" cellspacing="0">
  5.      <tr><td > <a href="http://{$SITE_HOST}/page/{$user_pages[page][5]}/" class="index_page_link">{$user_pages[page][7]|capitalize}</a></td></tr>
  6.      <tr><td class="index_pge">{$user_pages[page][6]}&nbsp;.....<a href="http://{$SITE_HOST}/page/{$user_pages[page][5]}/" class="index_page_link" style="font-size:10px; ">More <small>>></small></a></td></tr>
  7.      <tr><td style="border-bottom:1px dotted silver ">&nbsp;</td></tr>
  8.  </table>{/section}
  9. </iframe>
  10. </div>
  11.  
  12.  
Thank you
Ruth
Nov 19 '07 #1
1 8502
drhowarddrfine
7,435 Expert 4TB
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>.
Nov 19 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Angelo | last post: by
4 posts views Thread by Keon | last post: by
7 posts views Thread by Christopher J. Hahn | last post: by
13 posts views Thread by ukrbend | last post: by
26 posts views Thread by shlomi.schwartz | last post: by
7 posts views Thread by Tom Cole | last post: by
7 posts views Thread by pb | last post: by
1 post views Thread by Z1P2 | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by CCCYYYY | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.