We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4749
    • 623 Posts
    This is what I get when I look at the source.
    <form action="0.html" method="post">

    When I submit a search it gives me an error obviously because I don’t have a ’0.html’ page on the site.

    Here’s the snippet call:
    [!AjaxSearch? &ajaxMax=`5` &showMoreResults=`1` &moreResultsPage=`198` &ajaxSearchType=`1`!]
    


    and the results page:
    [!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0`!]


    any ideas?
      The MODx has you...
      Utah Web Design
      • 5811
      • 1,717 Posts
      Hi cbaone

      Do you get this error after clicking on the link "click here to view all results" ?

      Look at this example here to see AS running with the same call. Choose "children" for instance as searchword.

      Could you catch and tell me what is the exact url before to get the pb on the result page ?
      in my example is it:
      http://www.modx.wangba.fr/index.php?id=87&AS_search=children
        • 4749
        • 623 Posts
        Hi coroico,
        I don’t get any results. I type in a search term and it takes me directly to a page titled:

        http://mysite.com/0.html


        Here’s the page I get when I use your search - before I click "click here to view all results"

        http://www.modx.wangba.fr/index.php?id=154

          The MODx has you...
          Utah Web Design
          • 4749
          • 623 Posts
          coroico,
          I finally got it to show results. All I did was update MySQL to 5.0.45 from 4.1.26 that’s all I’ve done and now it will show results on the results page, BUT...it’s also showing the results below the search box too. The results are doubled - once below the form and once on the results page. What’s going on? I haven’t changed my call or anything yet. Thanks.
            The MODx has you...
            Utah Web Design
            • 5811
            • 1,717 Posts
            it’s also showing the results below the search box too. The results are doubled - once below the form and once on the results page.
            By default $AS_showResults=`1`. If you get twice the results that’s means that you call twice AjaxSearch.
            Could you check that between template and documents, you call FS only one time.
            If you call AS in your template and AS in your more-results page you get the results twice. Thanks to tell me where & how you call AS
              • 4749
              • 623 Posts
              Ok, but how do I keep the search box visible on the page with only one AS call? I took out the AS call for the search box on the results page and it’s working, but the problem is there’s no search box. How can they search again from the results page? Thanks.

              I may be smokin’ something, but I need that search box on the results page. How do you have it set up? Here’s how I have it now:

              [!AjaxSearch? &ajaxSearch=`0` &AS_landing=`198`!]

              for the search form in all pages of the template

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

              located on the results page
                The MODx has you...
                Utah Web Design
                • 5811
                • 1,717 Posts
                Adds &AS_showResults=`0` in the AS call located in the template:
                [!AjaxSearch? &ajaxSearch=`0` &AS_showResults=`0` &AS_landing=`198`!]
                (this avoid to display results on each page) and keeps
                [!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0`!]
                on your landing page (#198). Sorry for my previous remark about the two calls of AS I thought that you use the ajax mode (&ajaxSearch=`1`)
                  • 4749
                  • 623 Posts
                  Unbelievable! I can’t believe I missed that one! Thanks, coroico.
                    The MODx has you...
                    Utah Web Design