PDA

View Full Version : Help needed - search result onto iframe.


paulyii
06-19-2009, 03:40 AM
i am doing an e-book..
and wanna put a search in it ..

My index page has an iframe all the links will shows at the iframe.

i donno how to alther the search script so i can get what i went ( search result shown in iframe )

here is my ifame's part of the html script .

<iframe name="main" src="../e-PA/menu_index.htm"
align="middle" frameborder="0" height="2600" scrolling="no" width="96%"></iframe>

someone please help me to amend the below stated search script so i can get the result of the search appearing in that iframe.. pleaseeeee ...

the search script :

<form name="formSear" action="search.html" method="get"
onsubmit="return qs();">
<script>function qs(){var f=document.formSear;var qe=f.searWords.value;if(window.encodeURIComponent) qe=encodeURIComponent(qe);if(f.area)if(f.area.valu e==2){document.location="http://www.google.com/search?q="+qe;return false;}var pt=document.location.href;var iq=pt.indexOf('?');if(iq!=-1)pt=pt.substring(0, iq);if(f.action)if(f.action!="")pt=f.action;var ue=pt+"?searWords="+qe;if(f.search)ue+="&search="+f.search.value;if(f.match)ue+="&match="+f.match.value;document.location=ue;return false;}</script>
<p align="center"><input name="searWords">&nbsp;<input name="Send"
value=" Cari " type="submit"> </p>
<p align="left"><!-- ************************ END of search box code ************************** --><!-- Ignore the following IFrame line if you will not use IFrame in your search engine --><!-- You can move the following search results output code to where you want to output search results. --><!-- Modify the "src=" if needed. For example, modify to src="/search/webdata.js" etc. --><!-- ******************** BEGIN of search results output code ******************** -->
<script type="text/javascript" language="JavaScript" src="webdata.js"> </script>
<script type="text/javascript" language="JavaScript"
src="searchfunc.js"> </script><!-- ******************** END of search results output code ********************** -->
</p>
</form>

i am really empty on scripting ..
anyone ..

please helps !

thanks !
and Regards always !!

paulyii
07-02-2009, 01:25 AM
Nobody able to help ??


:(