Hi,
I have the following search code and want to use prototype js to have it submitted without refreshing the page.
I tried a few things, but couldn't make it work, would appreciate any help.
Here is the html code:
<form method="post" action="quick_stockview.php" name="quickview">
<table border="0" align=center> <tr> <tr> <form method="post" action="quick_stockview.php" name="fori">
<th class="smallText" align="left" valign="top">Categories:<br><select name="cat_id" onChange="this.form.submit();"><option value="0">Top</option><option value="65">Option 1</option><option value="69"> Option 2</option><option value="67"> Option 3</option><option value="68"> Option 4</option><option value="66"> Option 5</option></select>
<th class="smallText" align="left" valign="top">Products Name: <br><input type="text" name="keywords" value="">
<th class="smallText" align="left" valign="top">Group: <br><input type="text" name="group" value=""> <input type="submit" name="submit" value="Search"><input type="radio" name="active" value="all" CHECKED>All<input type="radio" name="active" value="no">Inactive<input type="radio" name="active" value="yes"> Active
</form>   <a href="quick_stockview.php"><u><font color=blue>Reset</font></u></a>
</th></tr><table>
<table border="0" align=center><tr><th class="smallText" align="left" valign="top"><input type="checkbox" name="prices" value="no">Prices<input type="checkbox" name="cost" value="no">Cost<input type="checkbox" name="length" value="no">Lengths<input type="checkbox" name="height" value="no">Heights<input type="checkbox" name="width" value="no">Widths<input type="checkbox" name="weight" value="no">Weights<input type="checkbox" name="sold" value="no" onclick="check(this)">Sold<input type="checkbox" name="serial" value="no">Serial<input type="checkbox" name="vcode" value="no">Vendor Code<input type="checkbox" name="added" value="no">Date Added <input type="checkbox" name="pics" value="no"><font color=green>Large Pics</font></th>
</th></tr><table>
<table border="0" align="center" id="moreInfo"><tr>
<br>
<th class="smallText" align="left"><input type="radio" name="soldrange" value="months" onclick="clearFlds()">Sold Past Months: <br><input type="text" id="pastm" name="pastm" value="" disabled="disabled"> <font color=red>Or:</font>
<th class="smallText" align="left"><input type="radio" name="soldrange" value="dates" onclick="clearFlds()">Sold From: <br><input type="text" id="sdate" name="sdate" value="" disabled="disabled"><img src="images/grid-cal.gif" alt="" id="trigger1" title="Date selector">
<th class="smallText" align="left">Sold Until: <br><input type="text" id="edate" name="edate" value="" disabled="disabled"><img src="images/grid-cal.gif" alt="" id="trigger2" title="Date selector">
</form>