We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12584
    • 208 Posts
    I have found a slight problem on the search box, when I enter the search term instead of the results showing up on the Landing page they all show below the search input box on whatever page your currently on.

    My ajax search is this

    [!AjaxSearch? &ajaxSearch=`0` &AS_landing=`8`  &moreResultsPage=`8` &showMoreResults=`1`  &addJscript=`0` &extract=`0` &AS_showResults=`0`!]


    THe only thing I have done recently is update to 1.0.4 from 1.0.3 but dont know how long the problem has been there.

    Does anyone have any ideas.

    My landing page looks like this
    [!AjaxSearch? &AS_showForm=`0` &ajaxSearch=`0`!]


    Thanks
      • 5811
      • 1,717 Posts

      Which release of AjaxSearch do you use ?
      If you use AS 1.9.0 or 1.9.1, read this post.

      2/ ============================ Renamed parameters

      For a better and a simpler undertstanding some parameters have been renamed

      AS_showForm => showInputForm
      AS_landing => landingPage
      AS_showResults => showResults

        • 12584
        • 208 Posts
        Hi

        Thats getting better thanks for the info I am using 1.9.0, I have now cut my call down to this

        [!AjaxSearch? &ajaxSearch=`0` &landingPage=`8` &addJscript=`0` &extract=`0` showResults=`0`!]


        The only thing going a bit wrong is where the input box is on the template is also outputs the results right under this also, so now it sends me to the landing page and the call on this page works fine but this is what get where the input field is:

        From this:
         <!-- Search form -->                  
                <div class="searchform">
                    [!AjaxSearch? &ajaxSearch=`0` &landingPage=`8` &addJscript=`0` &extract=`0` showResults=`0`!]
                </div>

        to this after search:
        <p class="ajaxSearch_resultsInfos">17 results found for "web site".<span class="ajaxSearch_resultsDisplayed">Displayed: 6</span></p>
          <div id="grpResult_site_wide" class="ajaxSearch_grpResult">
        
        <div class="ajaxSearch_grpResultName">
        <span class="ajaxSearch_grpResultsDisplayed">(Displaying 1 - 6 of 17)</span></div>
        
        <div class="paging1">
        
        <span class="paging1Infos"> 1 - 6 / 17 </span>
        <a id="next_site_wide" class="paging1Next" href="/index.php?q=search-results_Jeremy_is_.innocent&search=web+site&advsearch=oneword&aso=0,6">next</a>
        </div>
        <div class="ajaxSearch_result">
          <a class="ajaxSearch_resultLink" href="/index.php?q=contact-us_Jeremy_is_.innocent&searched=web+site&advsearch=oneword&highlight=ajaxSearch_highlight+ajaxSearch_highlight1+ajaxSearch_highlight2" title="Contact ">Contact Us</a>
        
        
        
        </div><div class="ajaxSearch_result">
          <a class="ajaxSearch_resultLink" href="/index.php?q=.......


        Things are getting close, the only thing I can think off is make a seperate template for the landing page and remove the input box on that page but I rekon I am missing something from my call.

        Thanks

        Ian
          • 12584
          • 208 Posts
          Found my 2nd problem,

          Instead of &ajaxSearch=`0` it should be &ajaxsearch=`0` no upper case on the "s"

            • 21054
            • 78 Posts
            I have the same problem...

            I’m using the latest version and ajax search results are appearing under the original search box. Changing it to lower case doesn’t fix it... in fact it seems to be the wrong way to write it (i.e. it enables ajax).

            The search box call is:
            [!AjaxSearch? &ajaxSearch=`0` &landingPage=`8` &extractLength=`400` &advSearch=`allwords` &maxWords=`20`  !]

            Document 8 has the following:
            [!AjaxSearch? &ajaxSearch=`0` &showInputForm=`0` extractLength=`600` &highlightResult=`1`!]


            Quote from: ian_m at Sep 18, 2010, 03:09 PM

            Found my 2nd problem,

            Instead of &ajaxSearch=`0` it should be &ajaxsearch=`0` no upper case on the "s"


              • 5811
              • 1,717 Posts
              Instead of &ajaxSearch=`0` it should be &ajaxsearch=`0` no upper case on the "s"
              The correct parameter name is ajaxSearch with an upper case for the "s".

              Extract from ajaxSearch_readme.txt:
              ---- &ajaxSearch [1 | 0]   (optional)
                      Use the ajaxSearch mode. Default is 1 (true)
                      The AjaxSearch mode use an Ajax call to get the results without full page reloading