Solved

about iframe?

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

Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Script 12 133
System Analysis 5 51
listing all functions in JavaScript 19 173
Why is my Splunk Web URL not working? 2 47
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
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…
A short film showing how OnPage and Connectwise integration works.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 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

15 Experts available now in Live!

Get 1:1 Help Now