I've been told I'd get more help here than on the ajax tread so here goes
I have a search box that works fine using ajax by clicking on the suggested search term it brings up and then clicking the go button.What I'm looking for now is to make this a one click process instead of two.I would like the search to trigger once the user clicks on the suggested term instead of needing the go button clicked after. Am I right in thinking that this can be done some how using the javascript onclick command or not?
So far I have:
I have a search box that works fine using ajax by clicking on the suggested search term it brings up and then clicking the go button.What I'm looking for now is to make this a one click process instead of two.I would like the search to trigger once the user clicks on the suggested term instead of needing the go button clicked after. Am I right in thinking that this can be done some how using the javascript onclick command or not?
So far I have:
Code:
<div id="Top1_yel" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'Top1_imgBtnSearch')">
<span id="Top1_lblLoginName" class="BodyText" style="font-weight:bold;"></span><p>
<span class="q">Quick search:</span>
<input name="Top1$txtQuickSearch" type="text" value="keywords or code" id="Top1_txtQuickSearch" tabindex="1" class="BodyText" AutoComplete="Off" OnFocus="Javascript:document.getElementById('Top1_txtQuickSearch').value = ''" />
<input type="image" name="Top1$imgBtnSearch" id="Top1_imgBtnSearch" tabindex="2" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Top1_imgBtnSearch','','im/go.gif',1)" src="im/go_2.gif" style="border-width:0px;" />
<a id="Top1_hpAZ" class="RedText" href="AToZIndex.aspx">A-Z Index</a>
</p>
<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('Top1$ToolkitScriptManager1', document.getElementById('Form1'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tUpdatePanel1'], ['rptTable'], [], 90); //]]>
</script>
</div>