Loading page to UFrame in Javascript

Feb 2, 2012 at 4:29 AM


I need to mimmick UFRAME to behave just like IFRAME by assigning it's src property in javascript function.

I try using some javascript function like the following but the page does not load at all.

function ShowPage(pageUrl) {
this.divContent.src = pageUrl;

where dicContent is the name of the Div that is supposed to be UFRAME.

Below is the complete ASPX

<form id="form1" runat="server">
<div style="position:absolute; top:0; left:0; height:100%; width:100%;">
<table style="width:100%; height:100%; border:0; padding:0;" cellspacing="0">
<tr class="headerBar">
<td colspan="2">&nbsp;
<tr class="headerStrip">
<td colspan="2">
<tr class="contentStrip">
<td style="width:300px; vertical-align:top; padding:10px; background-color:Gray">
<asp:Panel ID="pnlMenu" runat="server" Width="100%">
<asp:TreeView runat="server" ID="tvMenu" CssClass="menu"
ExpandDepth="FullyExpand" ontreenodepopulate="tvMenu_TreeNodePopulate"></asp:TreeView>
<td style="vertical-align:top;">
<div id="divContent" style="height:100%; width:100%; background-color:White;"></div>
<td class="statusStrip" colspan="2">

Please help