Solved

about iframe?

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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
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 …

856 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