ajax search module - doesn't work in internet explorer
Posted: Wed Jul 26, 2006 4:45 pm
ajax search module - doesn't work in internet explorer
Content management as it is meant to be
https://forum.cmsmadesimple.org/
Code: Select all
<!-- Create our CSS in Layout/StyleSheets --!>
<__script__ language="JavaScript" src="./modules/ajax_search_engine/ajax_recherche.js"></__script>
<form action="./?page=search_engine&return=true" method="post" >
<div style="float:left;">
<input size="20" name="recherche" id="recherche" type="text" onKeyUp="changeRecherche(this.value)"
value="{$mots}" norecord="norecord"
onFocus = "this.value='' "
/>
<input type="image" src ="./modules/ajax_search_engine/img/go.gif" alt ="OK" />
</div>
<div id="chargement" style="float:left;margin-left:10px;">
<!-- ici la barre de chargement -->
</div>
<div style="clear:both;">
<a href="./?page=search_engine&return=true" title="{$advanced_search_name}">{$advanced_search_name}</a>
</div>
</form>
<__script__ language="javascript">
changeRecherche(document.getElementById("recherche").value);
</__script>
<div id="resultats" style="clear:both;">
<!-- ici r�sultat de la recherche -->
</div>
Code: Select all
<!-- Create our CSS in Layout/StyleSheets --!>
<form action="./?page=search_engine&return=true" method="post">
<p>
<input size="20" name="recherche" type="text" value="{$value_search}" />
<input value="{$submit_name}" name="submit_recherche" type="submit">
</p>
<p>{$operateurs}</p>
<p>{$grande_categorie_checkbox}</p>
<p>{$results_search}</p>
</form>
Code: Select all
<!-- Start PisearchForm -->
<form action="http://www.webber-design.com/RCPCH/index.php?page=Pisearch" method="post">
<table summary="Pisearchtable">
<tr>
<td>
<label for="Inputfeld for words to search"><h4>Search</h4></label>
</td>
</tr>
<tr>
<td><input type="text" value="Words to search ..." maxlength="255" size="25" name="pisearch" id="searching" /></td>
</tr>
<tr>
<td><select name="special" size="1">
<option value="0">Standard</option>
<option value="1">Soundex</option>
<option value="2">Levenshtein</option>
<option value="3">Similar Text</option>
</select>
</td>
</tr>
<tr>
<td>
<select name="textlength" size="1">
<option value="100">100 Length of text </option>
<option value="200">200 Length of text </option>
<option value="300">300 Length of text </option>
<option value="400">400 Length of text </option>
</select>
</td>
</tr>
<tr>
<td>
<input type="submit" value="{$searchbutton}" id="buttonSearch" />
<input type="hidden" name="action" value="showresults" />
</td>
</tr>
</table>
</form>
<!-- End ModPisearchForm -->
Code: Select all
{if $pisearchtotal eq 0}
{if $pisearchwordcount >1}
<div class="pisearchresultheader">{$noresult_many_a} ->{$pisearchwords}<- {$noresults_many_b}.</div>
{else}
<div class="pisearchresultheader">{$noresult_one_a} ->{$pisearchwords}<- {$noresult_one_b}.</div>
{/if}
{else}
{if $pisearchtotal > 1}
<div class="pisearchresultheader">{$results_many_a}{$pisearchtotal} {$results_many_b} ->{$pisearchwords}<-.</div><br />
{else}
<div class="pisearchresultheader">{$results_one_a}{$pisearchtotal} {$results_one_b} ->{$pisearchwords}<-.</div><br />
{/if}
{/if}
{$searchmode}:
{if $pispecial eq 0}
{$standard}
{elseif $pispecial eq 1 }
{$soundex}
{elseif $pispecial eq 2 }
{$levenshtein}
{elseif $pispecial eq 3 }
{$similartext}
{/if}<br /> <br />
{foreach from=$pisearchresults item=entry}
<a class="pisearchlink" href="{$entry->url}&mots={$pisearchwords}">{$entry->menutext}</a> <br /><br />
<div class="pisearchdetails">{$entry->details}</div><br />
{/foreach}