chrisbbarker
Technical User
Hello,
I was wondering if anyone could point me in the right direction,
I am trying to use a JavaScript search engine for my website as this is most convenient for me, however all the scripts that I have come across only have the standard search box, I would like to add several drop down selection menus to the search also. I can easily add the HTML into where I want them but I am struggling to actual incorporate them into the search.
Would anyone be able to help me or point me in the right direction? Below is the original search box that the script was written for:
<form method=get action="javascript:void(0)" onsubmit="search(this); return false;">
<tr><td><input type=text name=srchval value="">
<input type=submit value="Search"></td></tr>
</form>
And the start of the JavaScript is:
function search(frm) {
win = window.open("","","scrollbars");
win.document.write(page);
txt = frm.srchval.value.split(" ");
txt = frm.drop1.value.split("who");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {
Many thanks,
Chris
I was wondering if anyone could point me in the right direction,
I am trying to use a JavaScript search engine for my website as this is most convenient for me, however all the scripts that I have come across only have the standard search box, I would like to add several drop down selection menus to the search also. I can easily add the HTML into where I want them but I am struggling to actual incorporate them into the search.
Would anyone be able to help me or point me in the right direction? Below is the original search box that the script was written for:
<form method=get action="javascript:void(0)" onsubmit="search(this); return false;">
<tr><td><input type=text name=srchval value="">
<input type=submit value="Search"></td></tr>
</form>
And the start of the JavaScript is:
function search(frm) {
win = window.open("","","scrollbars");
win.document.write(page);
txt = frm.srchval.value.split(" ");
txt = frm.drop1.value.split("who");
fnd = new Array(); total=0;
for (i = 0; i < item.length; i++) {
Many thanks,
Chris