We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7319
    • 21 Posts
    Hi,

    I had AjaxSearch running fine in non Ajax mode. But apparently it seems that it stopped working for whatever reasons. When I hit the searchbutton, I get redirected to an empty results page which says "Pleasy type in a searchphrase to start the search".

    Here is the site where the behavior occurs http://betriebsausflug.com Its the searchbox in the header, try typing in "crossgolf" or "quad" which should normally yield some results.

    This is my setup:

    Ajax Snippet call

    [!AjaxSearch? &ajaxSearch=`0` &AS_landing=`2` &depth=`10` &tplLayout=`searchboxTpl`!]

    Search Form Template

    <form [+as.formId+] action="[+as.formAction+]" method="post">
    <input type="hidden" name="advSearch" value="[+as.advSearch+]" />

    <input id="ajaxSearch_input" class="cleardefault" type="text" name="search" value="[+as.inputValue+]"[+as.inputOptions+] />
    <input id="ajaxSearch_submit" type="image" src="assets/templates/betriebsausflug/img/filler.gif" name="sub" width="27" height="24" />

    </form>


    Ajax Search Results


    [!AjaxSearch? &AS_showForm=`0` &ajaxSearch=`0`!]
      • 7319
      • 21 Posts
      Does anyone have an idea what I have done wrong?
        • 7319
        • 21 Posts
        Nobody?
          • 5811
          • 1,717 Posts
          &tplLayout=`searchboxTpl` Could you post the content of this template. Thks.
            • 7319
            • 21 Posts
            Thanks for your reply and sorry for my late answer, I was on vacation.

            Here is the "searchboxTpl"

            <form [+as.formId+] action="[+as.formAction+]" method="post">
            <input type="hidden" name="advSearch" value="[+as.advSearch+]" />

            <input id="ajaxSearch_input" class="cleardefault" type="text" name="search" value="[+as.inputValue+]"[+as.inputOptions+] />
            <input id="ajaxSearch_submit" type="image" src="assets/templates/betriebsausflug/img/filler.gif" name="sub" width="27" height="24" />

            </form>
              • 7319
              • 21 Posts
              bump