ajax search module - doesn't work in internet explorer

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
rhys
Forum Members
Forum Members
Posts: 40
Joined: Thu Nov 24, 2005 4:16 pm

ajax search module - doesn't work in internet explorer

Post by rhys »

ajax search module - doesn't work in internet explorer
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: ajax search module - doesn't work in internet explorer

Post by tsw »

What does it do, what are you supposing it to do? how did you install it? any errors?

Its hard enough trying to debug these with proper information...

http://forum.cmsmadesimple.org/index.ph ... 661.0.html
rhys
Forum Members
Forum Members
Posts: 40
Joined: Thu Nov 24, 2005 4:16 pm

Re: ajax search module - doesn't work in internet explorer

Post by rhys »

We were using version 0.1 which worked in both FIrefox and IE, but upgraded to version 0.9 (which searches news module also). In firefox all works as expected, but in IE although the advanced search appers on the page, the top search does not. We deleted the default 'disabled' tag within the page/template.

In IE we get a warning icon (bottom left of status bar) but no indication as to what is wrong, just 'page loaded but with errors'.

I would appreciate any help you can give on this issue.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: ajax search module - doesn't work in internet explorer

Post by tsw »

Dont have IE handy atm but if I remember correctly double clicking that warning icon will give more information, could you paste that info here
rhys
Forum Members
Forum Members
Posts: 40
Joined: Thu Nov 24, 2005 4:16 pm

Re: ajax search module - doesn't work in internet explorer

Post by rhys »

In IE the page loads with no warning sign and no search bar, but does have the advanced search link.  When I click on the advanced search it takes me to a page without the advanced search and a warning sign that says 'done but with errors on page'.  Also the advanced search changes to 'Recherche avancee' still with no search bar.

Here is what the warning says once clicked on:

Problems with this web page might prevent it from being displayed properly or functioning properly.  In the future, you can display this message by double-clicking the warning icon displayed in the status bar.
Details
Line: 265
Char: 6
Error: Object required
Code: 0
URL: http://webber-design.com/rcpch/?page=se ... eturn=true


In Firefox, looks good but search bar is greyed out and cannot be typed into.  This works once disabled is taken out of the template.

Can't we just all agree not to use ie
benn

Re: ajax search module - doesn't work in internet explorer

Post by benn »

Has anyone solved this?

The ajax search version 0.1 is perfect for my needs, except that it doesn't search within the news or faq modules. Version 0.9 Does search within news and pifaq but doesn't work in Internt Explorer (isn't visable on the page}.

I know the new search for cmsms version 1 searches within the news module but doesn't have the highlight function plugin 'function.content_highlight' that ajax has.

Can someone Help? Or improve the Excellent ajax search engine.

I'm running CMS Made Simple 13. I'm using PHP 4.4.1, and MySQL 4.1.10. This is all working with Apache 1.3.38 running on Linux

Here is the ajax code

Ajax search -  this is invisable in internet explorer but works very well in firefox

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>

Advanced search - This shows up in both internet explorer and firefox

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>
benn

Re: ajax search module - doesn't work in internet explorer

Post 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
Post Reply

Return to “Modules/Add-Ons”