Last post Jun 17, 2008 06:52 AM by alhambraeidos
May 08, 2005 01:24 AM|dsridhar10|LINK
I have to create a webpage which should include iframes. The webpage is divided into two parts, left and right. The left side will contain a tree view control. Lets say the tree view control contains five nodes. On clicking one of the nodes, the right
side webpage is loaded based on the node clicked. If I click on first node the webpage relating to first node is displayed on the right side. If i click on second node the webpage relating to second node is displayed on right side and so on. I have to compulsorily
use IFrames. Can you please let me how to do this? If you can post some code that will address my problem that would be great. Are there any events related to treeview controls?
May 11, 2005 11:41 AM|egravitt|LINK
The template page's code looks something like:
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="maincontentcontainer"
<td width="200" valign="top">
<!--START LEFT SIDE BAR-->
<!--<div style="OVERFLOW:auto;WIDTH:100%;TEXT-ALIGN:left" id="divTV" class="divscroll">-->
<!--END LEFT SIDE BAR-->
<td width="1" class="topheaderbgcolor">
<img src="images/spacer.gif" width="1" height="1">
<td width="100%" valign="top">
<!--START RIGHT SIDE BAR-->
<IFRAME src="wzsummary.aspx" frameborder="0" noresize scrolling="no" id="IFRAMEData" width="100%"
<!--END RIGHT SIDE BAR-->
Here is a snippet from the XML file used to load the Tree:
Just pass the name of the page to the ChangeIFrameLocation function that you want to link to.
May 12, 2005 09:25 AM|dsridhar10|LINK
Thank you Eric. I have tried another approach and it worked. I have used two iframes. In one of the iframes i put the tree view control and in another iframe a sample webpage. I have used NavigateUrl and Target properties of the treenode to display the webpage
based on the link on which I clicked. It worked fine.
May 12, 2005 10:34 PM|calvinchua|LINK
How do you set the node target to a iframe?
May 13, 2005 09:15 AM|dsridhar10|LINK
Following is the part of the xml where I set the Target for each node
here Frame2 is the name of the iframe in which you want to display the webpage when the user clicks on the treenode.
May 13, 2005 12:12 PM|egravitt|LINK
instead of going back to the default.
Jun 10, 2005 06:11 PM|test12345|LINK
Jun 17, 2008 06:52 AM|alhambraeidos|LINK
Mister, can you put all sample code about it ?
Thanks in advance !!!