Contributions

InfoBoxes (Category Index)
Search: 

AJAX Search Suggest

This package is a replacement for the default search.php infobox that adds AJAX search suggest functionality similar to Google Suggest.

Installation involves replacing the search.php infobox, adding 1 file, and adding 3 new styles to the stylesheet.

For updates and more detailed information visit:
http://www.oscommerce-ssl.com/en/AJAX_Search_Suggest.html

For a detailed tutorial on how the AJAX functionality works visit:
http://www.dynamicajax.com/fr/AJAX_Suggest_Backend-271_290_312_315.html

Expand All / Collapse All

IE8 Fix (needs below IE6 & 7 fix) usisu 24 Jun 2009

nicola_fumagalli posted this fix on the forum, thought i'd add it.

IE8 dont work on table and getelements..

i have reconvert all with div and now work on all IE and firefox...

so the search_suggest.xml must be:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
/**
* osCommerce: XSLT Example for OSCFieldSuggest JS class
*
* File: includes/search_suggest.xsl
* Version: 1.0
* Date: 2007-03-28 17:49
* Author: Timo Kiefer - timo.kiefer_(at)_kmcs.de
* Organisation: KMCS - www.kmcs.de
* Licence: General Public Licence 2.0
*/
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="UTF-8" indent="no" method="html" doctype-public="-//W3C//DTD Xhtml 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<xsl:for-each select="response/suggestlist/item"><div style="cursor: pointer; width:300px; opacity: 0.9; filter: alpha(opacity=90); background-color: #FFFFFF; border-collapse: collapse; border-top: 1px solid #C6C6C6; padding: 1px; color:#000000; font-size: 8pt; font-family: Verdana;" onclick="window.location.href = '{url}';" onmouseover="this.style.backgroundColor = '#005388'; this.style.color = '#FFFFFF';" onmouseout="this.style.backgroundColor = '#FFFFFF'; this.style.color = '#000000';"><xsl:value-of select="name"/></div></xsl:for-each>
</xsl:template>
</xsl:stylesheet>

File includes these IE 6, 7, & 8 fix comments only (not full package). Hope this helps!

See it in action at http://www.horticulturesource.com/

IE6 & IE7 Fix usisu 3 Jun 2009
AJAX Search Suggest 1.6 fixed + iso-8859-2 cojack 26 Jun 2008
Updated searchsuggest.php - if no results are found, perform normal search maxxxie 29 Dec 2007
IMPORTANT: register_globals hotspot 4 Nov 2007
No autocomplete languagelover 5 Jun 2007
AJAX Search Suggest in header.php Robert972 9 May 2007
Fixed for typo & sql optimised dsonnet 6 May 2007
New Version 1.6 - The true AJAX ;) kmcs 28 Mar 2007
In the category bienenf 26 Jan 2007
Problem mit Umlaute behoben chrissmith 22 Jan 2007
AJAX_Search_Suggest ver. 1.5 Update carloscosta 20 Jan 2007
Change in Query ptvijay 27 Sep 2006
Ajax Quick search with Price ptvijay 27 Sep 2006
AJAX Search Suggest ver.1.4 by Maverick M@verick 22 Aug 2006
AJAX Search Suggest ver.1.3 Drako 21 Aug 2006
Minor updates : only search for active products tianyul 19 Aug 2006
Create links for each product listing mandavia 8 Jun 2006
IE compatibility modifications stepibou 4 Jun 2006
AJAX Search Suggest RyanSmith 8 Apr 2006
AJAX Search Suggest RyanSmith 5 Apr 2006

Note: Contributions are used at own risk.