We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23605
    • 16 Posts
    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.
      Never give up. You can do it.
      • 8522
      • 145 Posts
      I can not confirm this error using Ajax Search 1.8.4 and MODx 1.0.2 GA on windows xp IE6 nor on IE8 (using Sun VirtualBox). Though I do not have the web developer toolbar.

      I tested with my private evolution test installation and with http://evolution-102.trymodx.com/

      Can you reproduce the error on trymodx.com?

      You could try to change "aso.setStyle(’opacity’, ’0’);" to "aso.setOpacity(0)" see http://docs111.mootools.net/Native/Element.js#Element.setOpacity

      Hope that helps.

      eni
        • 23605
        • 16 Posts
        I tested the site from another computer on the LAN. It worked fine without any errors. I think its a bug in my internet browser. I will make sure further when I put my website online. I will send you the link to test it. Thank you for your help eni.

        Peter
          Never give up. You can do it.