We've released a Hotfix today to resolve the following issues.
We've updated the Incremental Search code so that it can be used on more than one input on a page. This means you can enable the incremental search in your top navigation search bar as well as having it on the main search page.
Here is an example of how to enable Incremental Search in your top navigation...
All pages that have the Incremental Search should have the ectcart.css and ectcart.js files included.
<form method="post" action="search.php" id="ecttextform">
<input type="hidden" name="posted" value="1">
<div style="position:relative">
<input type="text" maxlength="128" class="search_look" value="" name="stext" id="ecttext" onkeydown="return ectAutoSrchKeydown(this,event,'php')" onblur="ectAutoHideCombo(this)" autocomplete="off" />
</div>
<div class="autosearch" style="position:absolute;display:none" id="selectecttext"></div>
<button class="search_btn" title="Search" type="submit">Search</button>
</form>
The important bits are...
The form which now has the
id="ecttextform"The text input which has the
name="stext" BUT
id="ecttext"The text input must be in a div. . .
<div style="position:relative">The actions
onkeydown="return ectAutoSrchKeydown(this,event,'php')" onblur="ectAutoHideCombo(this)" (and please note, ectAutoHideCombo now has the parameter "this".
The autosearch DIV . . .
<div class="autosearch" style="position:absolute;display:none" id="selectecttext"></div>You can use any id you like (to have more than two searches on the page) as long as the id you give the text input (ecttext in this case) uses that name with "form" after it for the form (ecttextform) and that name preceeded by "select" for the DIV (selectecttext here).
Files affected:
css/ectcart.css
js/ectcart.js
vsadmin\inc\incfunctions.asp/php
vsadmin\inc\incsearch.asp/php
vsadmin\ajaxservice.asp/php
Vince
Click Here for Shopping Cart SoftwareClick Here to sign up for our newsletterClick Here for the latest updater