Page 1 of 1

ajax search module - cannot type into the search box

Posted: Tue Jul 25, 2006 4:18 pm
by rhys
cannot type into the search box.  here is the page source.  Think it has something to do with 'disabled' but do not know how to change this.  Advanced search part works.





Advanced search



changeRecherche(document.getElementById("recherche").value);





Re: ajax search module - cannot type into the search box

Posted: Tue Jul 25, 2006 4:27 pm
by rhys
works now deleted disabled="disabled" in the template

Re: ajax search module - cannot type into the search box

Posted: Mon Oct 23, 2006 10:45 am
by benn
This problem took weeks to solve. In the end I used pisearch but added the Ajax highlight function to it.

Here's what to do:

Install
pisearch 1.71
ajax plugin: function.content_highlight.php (into plugins folder)

Then edit pisearch in the content menu
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 -->
Results

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}
Hope this helps