Help - Search - Members - Calendar
Full Version: Need Help To Get Search Script To Open In Parent Frame
Zymic Webmaster Forums > Web Design & Development > General Web Design Discussion
Vaisor
I need To get my search script to open in the parent frame...

Because the Search is in an inline frame it opens the result page within the frame.

This happens on both "Enter" and clicking the "Search"

So is there a way to make it open in the parent frame?

This is the form.htm script:
CODE
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">

<html>
<head>
<title>JSE</title>

&lt;script language="JavaScript1.3" type="text/javascript" src="jse_form.js">



</script>
<base target="_parent">
</head>
<body topmargin="3" leftmargin="0" background="../../images/searchbg.gif">


<!-- Find -->

<form name="jse_Form" onsubmit="search_form(jse_Form);return false">
<input type="text" name="d" size="18">
<input type="image" src="img.jpg" onclick="search_form(jse_Form)" target="_parent" width="65" height="21" name="i1" align="absmiddle"></html>


Results.htm
CODE
<html>

<head>
&lt;script language="JavaScript1.3" type="text/javascript" src="jse_form.js">



</script>
&lt;script language="JavaScript1.3" type="text/javascript"
src="jse_search.js"></script>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 3</title>
<style>
<!--
body { font-family: Verdana; color: #333333; font-size: 9pt }
a:link { font-family: Verdana; font-size: 9pt; color: #008000 }
a:visited { font-family: verdana; font-size: 9pt; color: #800000 }
-->
</style>
<base target="_parent">
</head>

<body topmargin="3" leftmargin="0" background="../../images/searchbg.gif">

<!-- Find -->

<form name="jse_Form" onsubmit="search_form(jse_Form);return false">
<input type="text" name="d" size="18">
<input type="image" src="img.jpg" onclick="search_form(jse_Form)" width="65" height="21" name="i1" align="absmiddle">
</form>


&lt;script language="JavaScript1.3" type="text/javascript">
return_query()</script>


&lt;script language="JavaScript1.3" type="text/javascript">out_jse()
</script>
</body>

</html>



As you can see i tried this:

CODE
</script>
<base target="_parent">
</head>


With no luck....

This would be a huge help,
Thanks

PS: Sorry i say cant describe in title, I was just going to put , "need help" but i found out you dont have a character limit on so rolleyes.gif
Vaisor
So does nobody know????
Vaisor
dw got it wink.gif
MrTouz
was it not _blank ? didnt get what you meant by parent, anyways, i guess you have it now smile.gif
Vaisor
The form was in a frame inside another frame, I set the default link locations to the _parent frame on the navigation and took the form out of the frame, So now it opens on the actual page and not the navigation frame wink.gif
MrTouz
sounds confusing... tongue.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.