codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  How to kill framesets  meguyme at 02:46 on Friday, June 23, 2006
 

Hi All,

I have this page which contains framsets. What i wanted to do is whenever I click a button from the main frame it will redirect to a different page. Henceforth, killing the framsets. Please refer to the illustration below:

FILENAME: TEST.HTML
<frameset rows="70%, 30%">
<frame src="foo.php"> //Main Window
<frame src="bar.php"> //Sub Window
</frameset>

When I click on a button from the foo.php page.. I want my page to go to www.yahoo.com NOT remain on TEST.HTML with the Sub Window still in it.

Any ideas?

Thanks in advance my fellow coders.

  Re: How to kill framesets  cherni99 at 10:41 on Tuesday, June 27, 2006
 

You are going to have to use target in your form tag

i.e. <form name="whatever" method="post" action="whatever.htm" target="_parent">

that should work!

  Re: How to kill framesets  meguyme at 10:51 on Tuesday, June 27, 2006
 

hey... it works! thanks for the advice. :D

  Re: How to kill framesets  cherni99 at 11:01 on Tuesday, June 27, 2006
 

No probs!








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
• Re: Text wrapping on C# webforms buttons
• Re: Replacing patterns a^b with pow(a,b)
• Re: Problem - Object doesn`t support this property or method
• great sight
• Re: JavaScript: Not working in Firefox 3.x
• Re: Difference between two dates including From & To date
• Re: How to highlight text WITHIN a JTable cell?
• Re: Javascript: return not in function?
• Re: How to concatenate a string and a variable using perl?


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010