+ Reply to Thread
Results 1 to 4 of 4

Thread: On onchange event hide blank frame

  1. #1
    Barn Enthusiast guddu is on a distinguished road guddu's Avatar
    Join Date
    Jul 2008
    Location
    Oxford UK
    Posts
    390
    Rep Power
    3

    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

  2. #2
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Washington, D.C.
    Posts
    2,347
    Blog Entries
    9
    Rep Power
    19

    I'm confused on what you're asking. Could you try explaining it a little more clearly?
    jmurrayhead
    If you agree, give me rep. If my post helped you, click "Thanks".
    If you like it here...throw us a few bones to help support us.


  3. #3
    Barn Enthusiast guddu is on a distinguished road guddu's Avatar
    Join Date
    Jul 2008
    Location
    Oxford UK
    Posts
    390
    Rep Power
    3

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

    thanks a lot.
    Love is physical attraction and mental destruction

  4. #4
    Barn Enthusiast guddu is on a distinguished road guddu's Avatar
    Join Date
    Jul 2008
    Location
    Oxford UK
    Posts
    390
    Rep Power
    3

    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
    Love is physical attraction and mental destruction

+ Reply to Thread

Similar Threads

  1. ModalPopupExtender.Hide() - Weird
    By Shem in forum .Net Development
    Replies: 7
    Last Post: August 15th, 2008, 09:49 AM
  2. Grouping buttons to one event
    By Shem in forum .Net Development
    Replies: 8
    Last Post: July 17th, 2008, 06:53 AM
  3. adding an event for my btnDelete in repeater
    By Shem in forum .Net Development
    Replies: 13
    Last Post: July 15th, 2008, 09:33 AM
  4. Updating DDL inside DataList OnChange of DDL outside DataList
    By richyrich in forum .Net Development
    Replies: 2
    Last Post: July 9th, 2008, 11:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO