We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26968
    • 25 Posts
    Hello,
    I am having a little difficulty using AjaxSearch 1.9.0. I recently upgraded a ModX installation from 0.9.6 to 1.0.4.
    I believe I am using the snippet call correctly but I cant get the results to open in a traget page ID = 213
    Here is my call:
    [!AjaxSearch? &ajaxSearch=`0` &landingPage=`213`!]

    also tried:
    [!AjaxSearch? &ajaxSearch=`0` &landingPage=`213` &AS_landing=`213`!]


    Here is the page:

    http://www.pulsegreeknetwork.com/pagelifestyle.html

    I must admit that I am a bit frustrated as I have been trying all sorts of different configurations and calls and I cant quite get it to work. I even downloaded and reinstalled the ajaxSearch directory and snippet call. Any help with this would be greatly appreciated.
    thanks,
    s.
      • 26968
      • 25 Posts
      NEVERMIND, I had an extra <form> tag in the template wrapping the snippet call. I removed the extra tags and everything works fine.
      my bad.
      s.
        • 8912
        • 11 Posts
        Hi I’m having the same problem.
        The strange thing is the code works fine on several sites i’ve done with modx, buton 2 sites i’m working on now it dont wanna work huh

        call for the search box = [!AjaxSearch? &ajaxSearch=`0` &AS_landing=`4` &showResults=`0`!]
        tried without the AS_ and with combo of both

        code on landing page = [!AjaxSearch? &ajaxSearch=`0` &AS_showResults=`1` &AS_showForm=`0`!]

        Note: with &AS_showform=`0` the form does appear on the actual results page what makesit even more strange (well to me atleast) is when opening the actual results page and doing a search on that page from the side bar ore from the search form that should not be showing the results appear in the correct place.

        I do hope someone can help me out here as its 2 sites i’m working on and without fixing this I can’t make em live :’(
          • 5811
          • 1,717 Posts

          The correct AS call for the search box should be :
          [!AjaxSearch? &ajaxSearch=`0` &landingPage=`4`!]

          &showResults=`0` is useless with &landingPage.

          And on the landingPage (#4):
          [!AjaxSearch? &ajaxSearch=`0` &showResults=`1` &showInputForm=`0`!]

          See http://www.modx2.wangba.fr/index.php?id=38 as demo.
            • 8912
            • 11 Posts
            thanks for your fast reply I now do get the search reulst on the correctpage but they also still appeared below the search box
            I added &showResults=`0` to the call and it now works a charm thanks a million for your help.