DeveloperBarn Forums

DeveloperBarn

Programming & IT forum

On onchange event hide blank frame

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 ...

Go Back   DeveloperBarn Forums > Programming & Scripting > JavaScript Programming

  #1  
Old September 4th, 2008, 12:32 PM
guddu's Avatar
Barn Enthusiast
 
Join Date: Jul 2008
Location: Oxford UK
Posts: 334
Rep Power: 2
guddu is on a distinguished road
Default On onchange event hide blank frame

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>
on on change event i m calling this function in javascript

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 
 }
}
see the bold line .i dont want to display balnk page.

hope it make some sense.
sorry for cross posting.
__________________
Love is physical attraction and mental destruction
Reply With Quote
  #2  
Old September 5th, 2008, 07:15 PM
jmurrayhead's Avatar
The Barnfather
 
Join Date: Mar 2008
Real name: Jason
Location: Washington, D.C.
Posts: 1,964
Blog Entries: 8
Rep Power: 15
jmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud of
Default

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

Reply With Quote
  #3  
Old September 6th, 2008, 05:57 PM
guddu's Avatar
Barn Enthusiast
 
Join Date: Jul 2008
Location: Oxford UK
Posts: 334
Rep Power: 2
guddu is on a distinguished road
Default

JMH- I got the solution .i i will post on monday from my work place.

thanks a lot.
Reply With Quote
  #4  
Old September 8th, 2008, 09:14 AM
guddu's Avatar
Barn Enthusiast
 
Join Date: Jul 2008
Location: Oxford UK
Posts: 334
Rep Power: 2
guddu is on a distinguished road
Default

hi
dynamically dividing main frameset like this.so now i can change size of my frame.
Code:
parent.TopFrame.rows = "30%,20%,50%";
thanks a lot

Comments on this post
jmurrayhead agrees: thanks for sharing
Reply With Quote
Reply

  DeveloperBarn Forums > Programming & Scripting > JavaScript Programming

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -4. The time now is 10:43 AM.


Copyright ©2008-2010, DeveloperBarn

Content Relevant URLs by vBSEO 3.3.2