We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31415
    • 11 Posts
    http://modxcms.com/forums/index.php/topic,29599.0.html

    I have read over the above thread. I am doing the very same thing on a site that is password protected (at work, requirement until it’s live), so can’t show you the link.

    This is my call in the header (in the template so it’s on every page):

    [!AjaxSearch2?  &ajaxSearch=`0` &AS_showResults=`0` &AS_landing=`17` !] 


    In the content area, on page id 17, where I would like search results to show, I have

    [!AjaxSearch2? &ajaxSearch=`0` &AS_showForm=`0` !] 



    When I was developing the site on my laptop with Xampp, the AjaxSearch worked just fine, but in this environment, what I get for search results is a completely blank page. When I view source, there is nothing, which means that the call to the page is interrupted somehow. I cannot see why. I don’t see any other parameter that I should be using. All the backticks are there. They are backticks.

    Can someone see what I’m missing?

      • 10449
      • 956 Posts
      I’d check if the spelling/capitalization is correct. Is the snippet’s name really AjaxSearch2 ? Not Ajaxsearch2 or ajaxSearch2? PHP and MODx are case-sensitive. And of course check if the AS2 folder is uploaded too.

      Or maybe try a snippet call without any arguments?
        • 31415
        • 11 Posts
        thank you for the reply; the spelling is correct.

        I tried a call for the results with no parameters and got the same result.