Hi, I am working on modx evolution 1.0.2 and using Ajax Search 1.8.4. My operating template is Modxhost.
I have the search form in the header area of my site. The ajax search form is working perfect in Firefox 3.5 browser.
When I open the site on IE8 it gives me the following javascript error (Done but with errors in page)
I debugged the error using IE8 web developer toolbar. there are two errors:
’null’ is null or not an object
ajaxSearch.js line:42
Object doesn’t support this property or method.
mootools.js line:153
code:0 char:107
URI: http://.../manager/media/script/mootools/mootools.js
in ajaxSearch.js line 42 says
40| var asf = $(’ajaxSearch_form’);
41| var aso = $(’ajaxSearch_output’);
42|
aso.setStyle(’opacity’, ’0’);
I have a call for mootools.js in ModxHost template header
... <script src="manager/media/script/mootools/mootools.js" type="text/javascript"></script>
<script src="assets/templates/modxhost/drop_down_menu.js" type="text/javascript"></script>
my ajax search call is the following in the template.
... <div id="search"><!--search_terms--><a name="search"></a>[!AjaxSearch? ajaxSearch=`1` &AS_landing=`15` &moreResultsPage=`15` &showMoreResults=`1` &addJscript=`0` &extract=`0` &AS_showResults=`0`!]
Please can anyone give me a clue of what is happening on IE8?
Thanks in advance.