Advertisement

10.07.2004 at 09:51AM PDT, ID: 21159841
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.4

How do I populate bottom frame using a Form that utilizes external JavaScript

Asked by originsone in JavaScript

Tags:

Hi, I'm trying to use the following javascriptbased search engine on a site.  It all works great when the search results have to appear in the frame that the form is calling from.  But I want the form in the top frame (topFrame) to display the results in the bottom frame (mainFrame).  

Before you say to use (Target="framename") in the Form tag, I already did.  Doesn't seem to work.  I'm sure it has something to do with the fact that I using an external javascript to return my search results.
 
Here the code I'm using:

In HTML Head
<script language="JavaScript1.3" type="text/javascript" src="findit_form.js"></script>

In HTML Body
    <form name="findit_Form" onSubmit="search_form(findit_Form);return false">
      <td bgcolor="#CCCCCC" align="center" width="186">
        <input type="text" name="d" onFocus="if(this.value == 'Search')this.value = '';" onBlur="if(this.value == '')this.value = 'Search';" value="Search" size="16">
        <input type="button" value="Go" onClick="search_form(findit_Form)" name="button">
      </td>
    </form>


Contents of External JS (findit_form.js)

// ---------- findit_form Start----------


var results_location = "results.html";

function search_form(findit_Form) {
      if (findit_Form.d.value.length > 0) {
            document.cookie = "d=" + escape(findit_Form.d.value);
            window.location = results_location;
      }
}
// ---------- findit_form End ----------


There is another script tied into this mess, but it's presence in this question is irrelevant.  It's only used to calculate the results to be displayed in the results.html page.  Nothing to do with the location of the results.

As stated before, I tried adding a target to the Form tag in the HTML:
<form name="findit_Form" onSubmit="search_form(findit_Form);return false" Target=”mainframe”>

Again, this script works beautifully when I use the form in the same frame that I want the results.  But I want the form in the topFrame and the results in the mainFrame (on bottom).

Any ideas?
Start Free Trial
[+][-]10.07.2004 at 10:20AM PDT, ID: 12251188

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: JavaScript
Tags: target
Sign Up Now!
Solution Provided By: knightEknight
Participating Experts: 1
Solution Grade: A
 
 
[+][-]10.07.2004 at 10:21AM PDT, ID: 12251206

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2004 at 10:36AM PDT, ID: 12251400

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2004 at 01:11PM PDT, ID: 12253112

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.07.2004 at 02:10PM PDT, ID: 12253676

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.12.2004 at 08:27AM PDT, ID: 12288094

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32