We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32514
    • 11 Posts
    Is there a fix for the ajaxSearch.js issue with the Error: Window.onDomReady is not a function?

    The call I’m using is:
    [!AjaxSearch? &AS_landing=`8` &moreResultsPage=`8` &showMoreResults=`1` &AS_showResults=`1`!]


    I’ve ensured that I have the latest version of AjaxSearch installed and that mootools.js is called.

    www.bandingtogether.co.uk/composition.htm is a page demonstrating the problem.

    Any help would be great.
    Thanks for your time.
      • 5811
      • 1,717 Posts
      Which version of mootools do you use ?

      It seems that you use scriptaculous rather than mootools:
      <title>Banding Together | Search Results</title>
      <script src="manager/media/script/scriptaculous/prototype.js" type="text/javascript"></script>
      <script src="manager/media/script/scriptaculous/scriptaculous.js" type="text/javascript"></script>
      


      What is your AS snippet call ? Have you set addJscript parameter to 0 and load scriptaculous ?
        • 32514
        • 11 Posts
        Thanks coroico.
        I removed the other JS libraries and added the addJscript to the AS call and it worked.
        I was sure that I’d tried this before but obviously not as it is working now! rolleyes
        Thanks for your time.

        Ben.