Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Redirect URL to a specified frame

Posted on 1997-02-17
2
Medium Priority
?
180 Views
Last Modified: 2013-12-25
I am using a form to access dynamic link to different homepages.  

The homepage had divided into two frames, left and right.  The form for indexing located in the left frame, and I would like the content will be show in the right frame after user submit their desire.

I had used:

             <BASE>, <TARGET>...etc,

in the form but fail. In addition, only a new browser windows appears if I use:

             Window-target: right

Can any one help me?
0
Comment
Question by:chankct
2 Comments
 
LVL 1

Expert Comment

by:evilgreg
ID: 1827724
Hard to say without seeing the code. Could you provide the HTML or even better the URL?

0
 

Accepted Solution

by:
pchung021797 earned 80 total points
ID: 1827725
Following is the example.

=========================main html file======================
<html>

<head>
<title> ... </title>
</head>

<frameset cols="50%,50%">
  <frame name="left" src="left.html">
  <frame name="right" src="right.html">
</frameset>

=======================left.html=======================
<html>

<body>

<form>

<select name="location" size="1">
    <option value="http://www.microsoft.com/">Microsoft</option>
    <option value="http://home.netscape.com/">Netscape</option>
    <option value="http://www.intel.com/">Intel</option>
</select>

<p>

<input type="button" name="GoButton" value=" Go " onclick="parent.frames[1].location.href = this.form.location.options[this.form.location.selectedIndex].value; return true">

</form>

</body>

</html>
=============================right.html========================
<html>

<body>

right

</body>

</html>

0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
This article will show, step by step, how to integrate R code into a R Sweave document
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question