473,408 Members | 1,747 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 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 8968
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

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

Similar topics

1
by: Angelo | last post by:
I'm trying to use iframe to create a menu for a bunch of pages - only I'd like the menu to change slightly (a highlight) depending on what page it's being displayed in. <iframe name="menu"...
4
by: Keon | last post by:
Hoi Do someone know how i can make the background of a iframe transparancy? I already tried it with filter: Alpha(Opacity=50,); but it also make the text transperancy. do someone know how to...
7
by: Christopher J. Hahn | last post by:
I'm trying to use a script-generated form to submit to a script-generated iframe. The problem I'm running into is that the iframe is not assuming the name I assign it. IE6 on Win2000. FF1.0.2+...
13
by: ukrbend | last post by:
I'm new to Javascript and to html and am trying to make the following code snippet work but it doesn't. It refuses to call the getPage() function and I always get a 404 error. I know the code is...
26
by: shlomi.schwartz | last post by:
using this example: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Test Page</title> </head>
7
by: Tom Cole | last post by:
IFrames have been used by years for people to accomplish many of the tasks the XMLHttpRequest does for them now...I unfortunately am late in the game and XMLHttpRequest was already out there by the...
7
by: pb | last post by:
Hi all, I have some code that automatically generates a url depending on user selections. This url is then set as a hyperlink and the user clicks on the link that has the target as an iframe on...
1
by: Z1P2 | last post by:
I would like to gradually resize an iframe in an onmouseover event. I can easily do it with an image, but when I try to do it with an iframe, it doesn't do anything. So first of all, is it possible...
23
by: vunet | last post by:
It is recommended by some sources I found to create IFrames in IE using document.createElement('<iframe src="#">') instead of document.createElement('iframe'). Why and what browser versions to...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.