Solved

about iframe?

Posted on 2001-06-15
5
185 Views
Last Modified: 2013-12-24
I've got a javascript tree on my program. When I click on the one of the node,its description should appear on the right side - which is iframe. My question is how to put my data on the iframe ?
0
Comment
Question by:chocobo95
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:Yog
ID: 6195619
An inline frame or a floating frame, is a frame inserted within a block of text. The IFRAME element allows to insert a frame within a block of text, and it works much like inserting an object via the OBJECT element. Works in IE4+, NS6

Example
<IFRAME src="hello.htm" width="400" height="400"
scrolling="auto" frameborder="1">
Hello I am here, this is displayed if browser doesn't support iFrame
You can visit <A HREF="hello.htm">the related document</A>
</IFRAME>

Cheers
0
 

Author Comment

by:chocobo95
ID: 6197524
how about if my tree and my iframe are placed in the same file ?
0
 
LVL 5

Expert Comment

by:Yog
ID: 6198470
Then couldn't guess - can tell only based on how your javascript Tree is? Is it a regular control or db-driven etc?
0
 

Accepted Solution

by:
KeCl earned 50 total points
ID: 6203151
<IFRAME id="ifr" src="Empty.html" width... height... etc...>

In onclick u can write: onclick="ifr.location='Description.cfm?id=your_node_id'"

The only problem I don't remember: id="ifr" or name="ifr". I usually write both :)

PS also u can use complicated algorythms with document.write's :)...
0
 

Author Comment

by:chocobo95
ID: 6204909
all the nodes are db driven...
maybe you can see the display at :
www.geocities.com/otan_us/org.html.
the iframe located next to tree hierarchical.
as I click on one of the link, the iframe refresh and show the detail....

okay thx...

0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
tomcat7  URL keeps resolving to https instead of HTTP 4 61
Intranet Solution - Sharepoint Foundation or up 4 65
IIS Site Configuration Copy 2 77
SCCM vs Windows server 5 79
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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