This is a discussion on On onchange event hide blank frame within the JavaScript Programming forums, part of the Programming & Scripting category; hi in my frame page i have 3 horizontal frames.on onchange of select box i m displaying pages into this ...
| |||||||
|
#1
| ||||
| ||||
| hi in my frame page i have 3 horizontal frames.on onchange of select box i m displaying pages into this frame.problem is for only one item in select box i have to disaplay pages in 3 frames.but for all other i want to show only 2 frames.rite now i m displaying balnk.htm file in 3rd frame.but i want to utilize space of 3 rd frame so my 2nd and 3rd will become one. how to do this? Code: Code: <Frameset Border=0 Rows="30%,40%,30%"> <Frame name="ShowMembers" NoResize Src="ShowMembers.asp"> <Frame name="ShowFolders" NoResize id="ShowFolders"> <Frame name="ShowFiles" NoResize id="ShowFiles"> <NoFrames> <Body> <P>This page uses frames, but your browser doesn't support them.</P> </Body> </NoFrames> </Frameset> Code: Code: function FnGotoFrame(MemID,MemName,vlCounter)
{
var i;
for(i=1;i<=document.getElementById("HTotalCount").value;i++)
{
if(i != vlCounter )
{
eval(document.getElementById("cboAction_" + i )).value = "";
}
}
if(document.getElementById("cboAction_" + vlCounter).value == "")
{
parent.ShowFolders.location = "../../blank.htm";
parent.ShowFiles.location = "../../blank.htm";
}
else if(document.getElementById("cboAction_" + vlCounter).value == "1")
{
parent.ShowFolders.location = "/Plugins/Ftp/showFolder.asp?hidMemberID=" + MemID
parent.ShowFiles.location = "../../blank.htm";
}
else if(document.getElementById("cboAction_" + vlCounter).value == "2")
{
parent.ShowFiles.location = "../../blank.htm";
parent.ShowFolders.location = "/Plugins/ProtocolSettings/showSettings.asp?hidMemberID=" + MemID
}
else
{
parent.ShowFiles.location = "../../blank.htm";
parent.ShowFolders.location = "/Plugins/MemberMaintenance/TraderDocumentTypes.asp?hidMemberID=" + MemID
}
}
hope it make some sense. sorry for cross posting.
__________________ Love is physical attraction and mental destruction |
|
#2
| ||||
| ||||
| I'm confused on what you're asking. Could you try explaining it a little more clearly?
__________________ jmurrayhead If you agree with me... click the icon! If my post solved your problem, click the button in the lower right-hand corner of the post.If you like it here...throw us a few bones to help support us. Join our Folding team: DeveloperBarn Folding |
|
#3
| ||||
| ||||
| JMH- I got the solution .i i will post on monday from my work place. thanks a lot. |
|
#4
| ||||
| ||||
| hi dynamically dividing main frameset like this.so now i can change size of my frame. Code: parent.TopFrame.rows = "30%,20%,50%"; |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ModalPopupExtender.Hide() - Weird | Shem | .Net Development | 7 | August 15th, 2008 09:49 AM |
| Grouping buttons to one event | Shem | .Net Development | 8 | July 17th, 2008 06:53 AM |
| adding an event for my btnDelete in repeater | Shem | .Net Development | 13 | July 15th, 2008 09:33 AM |
| Updating DDL inside DataList OnChange of DDL outside DataList | richyrich | .Net Development | 2 | July 9th, 2008 11:18 AM |