truemperjm
MIS
Okay, I've been handed a project for a guy who has gone on three weeks of vacation, and I'm clearly not the coder he is.
So my problem is this: He created this very advanced (for a prototype) search box where you automatically get a list of results based on the first letter you type. Here is an image to help describe it:
You insert the letter "m" in the top field, and automatically the bottom field appears with results for you to select from. As far as I can tell the "search" button is worthless.
What I need is to ditch the auto-results part of it. When I type "m" results can't instantly appear in the bottom field. I need to type "m" and then press the "Search" button for the lower field to fill.
So here is a snippet of his code:
How would I change that code to find the results only after clicking the search button?
So my problem is this: He created this very advanced (for a prototype) search box where you automatically get a list of results based on the first letter you type. Here is an image to help describe it:
You insert the letter "m" in the top field, and automatically the bottom field appears with results for you to select from. As far as I can tell the "search" button is worthless.
What I need is to ditch the auto-results part of it. When I type "m" results can't instantly appear in the bottom field. I need to type "m" and then press the "Search" button for the lower field to fill.
So here is a snippet of his code:
Code:
<input type="text" id="search" name="search" value="" onkeyup="showHint(this.value);tempRetrieve();" onkeypress="showHint(this.value);tempRetrieve();" size="40" class="formFont"> <a href="javascript:onclick=searchField();"><img src="<%= searchImg %>" border="0"></a>
How would I change that code to find the results only after clicking the search button?