Solved

Creating IFrames

Posted on 2000-03-07
4
847 Views
Last Modified: 2008-03-10
Hi,
I want to create IFrames at runtime.
I used document.write("<IFrame ...></IFrame>").
It worked fine. Each IFrames has set of links and caption. So,I've to create 2 rows for each IFrame.What is the best way to do this?.
One way is creating a table inside each IFrame and the other way is create two <Div> tags .One for the caption and other for the links.These 2 div tags should be inside the IFrame.

Is there any other way to do this?.
I'm creating the IFrame at runtime.
Any ideas/suggestions can be very useful for me.
Thanks in advance.
0
Comment
Question by:tmmet
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 

Accepted Solution

by:
remibrom earned 50 total points
ID: 2594811
I would suggest coding the tables for each IFRAME in an external file and then having the IFRAME link to the file -- thus, you would have <IFRAME SRC="stuff.html">
This approach would make updating the links easy, as you would only have to edit the external file, you would leave the IFRAME alone.  This may not work if you create the links and IFRAME contents at run-time, though.  If you do that, I suggest using the DIVs, because they are easy and work well with IFRAMEs -- unless you want borders for each "cell", in which case a table is the obvious choice.
0
 

Author Comment

by:tmmet
ID: 2596590
Hi,
Thanks for our reply.how can I embed 2 DIV tags inside my IFrame?.I tried using document.all.myIFrame.innerHTML = ....
Its giving error.Any ideas/suggestions will be greatly helpful for me.Thanks in advance.
0
 

Author Comment

by:tmmet
ID: 2596597
Hi,
Thanks for our reply.how can I embed 2 DIV tags inside my IFrame?.I tried using document.all.myIFrame.innerHTML = ....
Its giving error.Any ideas/suggestions will be greatly helpful for me.Thanks in advance.
0
 

Expert Comment

by:remibrom
ID: 2599215
Ah, so you ARE embedding at run time.  To change HTML (including DIVs) at runtime, check at http://msdn.microsoft.com/msdn-online/workshop/author/dhtml/reference/properties/innerHTML.asp
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
I'm a Human captcha checkbox 13 40
alert on input text 2 24
ASP sending two datas 2 23
Use Mid in Html 6 22
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question