Frames, grrr!

liunx

Guest
I'm just adding a different search engine to my menu frame. How do I get this script to open results in the content frame?<br />
<br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"menu/google.png" alt=""><br />
<br><br />
<form action="http://www.google.com/search" name=f><br />
<input maxLength=256 size=18 name=q value="" ><br><br />
<br><br />
<input type=submit value=" Google Search" name=btnG><br />
<br><br />
<br />
<br />
</span><input type=submit value=" Feeling Lucky " name=btnI><br />
</form></font><br />
<br />
<br />
I tried adding TARGET="content" to a few places but still got nill. Please help!<!--content-->Something like target="main" but I'm not sure.<!--content-->If this is a script provided by Google to add to sites, then there should be some instructions from their site in where things will open.<br />
<br />
If it is a straight search entry, then you may be out of luck. It looks like the info is directed to the Google site. Once power is sent in that direction (off your page) then you don't have any control over its outcome. It all hinges on what the Google site wants at that point.<br />
<br />
All this is because the "direction or target" of information is set inside the actual Google search script.<!--content-->Hi hi DYNAMIK<br />
<br />
no info at google<br />
or how to use target with a search engine....<br />
but....<br />
this works:<br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"menu/google.png" alt=""><br />
<br><br />
<form action="http://www.google.com/search" name=content><br />
<input maxLength=256 size=18 name=q value="" ><br><br />
<br><br />
<input type=submit value=" Google Search" name=btnG><br />
<br><br />
An other one <br />
<br />
<!-- Search Google --><br />
<center><br />
<FORM method=put action="http://www.google.com/search" name="content"><br />
<TABLE bgcolor="#FFFFFF"><tr><td><br />
<A HREF=http://www.htmlforums.com/archive/index.php/"http://www.google.com/"><br />
<IMG SRC=http://www.htmlforums.com/archive/index.php/"http://www.google.com/logos/Logo_40wht.gif" border="0" ALT="Google" align="absmiddle"></A><br />
<INPUT TYPE=text name=q size=31 maxlength=255 value=""><br />
<INPUT TYPE=hidden name=hl value="en"><br />
<INPUT type=submit name=btnG VALUE="Google Search"><br />
</td></tr></TABLE><br />
</FORM><br />
</center><br />
<!-- Search Google --><br />
<br />
:rocker: :rocker:<!--content-->Thanks Peter V!<br />
The only thing I had to change was where it says name="content" <br />
I made it TARGET="content"<br />
I was so close!!<br />
Thanks<!--content-->Sweet! Now im back to having fun again!<br />
So here's another fun question for ya. <br />
I'm trying to add a checkbox under the search engine that gives my surfers the oppertunity to decide if they want the results in the content section of my webpage or in a new window. here's what the script looks like in one of my html documents. This refers to all the hyperlinks on that page. I need it to just toggle the search results.<br />
<br />
<SCRIPT LANGUAGE="JavaScript"><br />
<!--<br />
function hyperlinks(target)<br />
{<br />
if (target) where = "_blank";<br />
else where = "_self";<br />
for (var i=0; i<=(document.links.length-1); i++)<br />
{<br />
document.links.target = where;<br />
}<br />
}<br />
// --><br />
</script><br />
<br />
<br />
<br />
Then my html might look something like this: (maybe)<br />
<br />
<br />
<br />
<img src=http://www.htmlforums.com/archive/index.php/"google2.png" alt=""><br />
<br><br />
<INPUT TYPE=text name=q size=18 maxlength=255 value=""><br />
<INPUT TYPE=hidden name=hl value="en"><br><br />
<br />
<INPUT type=submit name=btnG VALUE="Google Search"><br />
<br><br />
<INPUT TYPE="checkbox" NAME="targetnew" ONCLICK="hyperlinks(this.checked)"> Open results in new Window<br />
</FORM><br />
<!-- Search Google --><br />
<br><br><!--content-->
 
Back
Top