Solved

about iframe?

Posted on 2001-06-15
5
183 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now