I have an index.html that creates a frameset
On the navigation frame I have it load "Menu.aspx" and on the menu page I have code that will resize the frame to 50px from the original 180px
The issue is this. When I have the navigation shrunk to 50px, and i hit F5 the parent resets the frames to 180x,* when it should be 50px,*.
Is there anyway I can catch the frame sizes right before refresh and reset them after refresh?
- Matt
"If I must boast, I will boast of the things that show my weakness"
- Windows 2003 Server, 98 SE, XP
- VB.NET, VSTS 2010, ASP.NET, EXCEL VBA, ACCESS, SQL 2008
Code:
<frameset name="menu" border="1" frameborder="1" framespacing="0" cols="180px,*">
<frame name="Navigation" src="[URL unfurl="true"]http://sqadashboard.int.asurion.com/edit/Menu.aspx"/>[/URL]
<frame name="Display" src="[URL unfurl="true"]http://sqadashboard.int.asurion.com/edit/Home.aspx"/>[/URL]
</frameset>
On the navigation frame I have it load "Menu.aspx" and on the menu page I have code that will resize the frame to 50px from the original 180px
Code:
If btnMenuSize.ToolTip = "Expand Menu" Then
LoginStatus.Visible = True
CreateUser.Visible = True
TreeView.Visible = True
chkLoop.Visible = True
With btnMenuSize
.ImageUrl = "[URL unfurl="true"]http://sqadashboard.int.asurion.com/edit/Images/shrink.jpg"[/URL]
.ToolTip = "Shrink Menu"
.Attributes.Clear()
.Attributes.Add("onclick", "javascript:parent.resizeFrames('50px,*');")
End With
ElseIf btnMenuSize.ToolTip = "Shrink Menu" Then
LoginStatus.Visible = False
CreateUser.Visible = False
TreeView.Visible = False
chkLoop.Visible = False
With btnMenuSize
.ImageUrl = "[URL unfurl="true"]http://sqadashboard.int.asurion.com/edit/Images/expand.jpg"[/URL]
.ToolTip = "Expand Menu"
.Attributes.Clear()
.Attributes.Add("onclick", "javascript:parent.resizeFrames('180px,*');")
End With
End If
The issue is this. When I have the navigation shrunk to 50px, and i hit F5 the parent resets the frames to 180x,* when it should be 50px,*.
Is there anyway I can catch the frame sizes right before refresh and reset them after refresh?
- Matt
"If I must boast, I will boast of the things that show my weakness"
- Windows 2003 Server, 98 SE, XP
- VB.NET, VSTS 2010, ASP.NET, EXCEL VBA, ACCESS, SQL 2008