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

    I’m just playing with AS 1.90 (ajaxSearch190_6909.zip) from your site http://www.modx2.wangba.fr/index.php?id=122

    After I changed some parameternames, the search works like before (AS 1.84). But the included clearDefault.js looks totally different from the old one, delivered with AS 1.84. and the behavior is a little bit different:

    Clearing of default on focus: works in AS 1.84 and AS 1.90
    Resetting of default value on losing focus: works in AS 1.84, doesn’t work in AS 1.90

    When I replace the new clearDefault.js with the old one, everything is okay.

    Could you please have a look at the new clearDefault.js in ajaxSearch190_6909.zip?

    I’m still using MODx 1.02.

    My code of search form (AS 1.90 syntax):
    <div id="search">
    [!AjaxSearch? &ajaxSearch=`0` &tplLayout=`asForm` &advSearch=`allwords` &showResults=`0` &landingPage=`8` &showIntro=`0` &language=`german` &clearDefault=`1`!] </div>


    Code on landing page:
    [!AjaxSearch? &ajaxSearch=`0` &showInputForm=`0` &language=`german` &pagingType=`0` &whereSearch=`content|jot|tv` &tplPaging0=`asPaging` &tplResults=`asResults` &tplResult=`asResult` &grabMax=`10` &asLog=`2:0:250`!]
      Bye,
      Mithrandir
      • 5811
      • 1,717 Posts
      Thanks a lot Mithrandir You are right, this is not the correct file !

      This is the compacted form of the js file used for comments (ajaxCmt.js)! I Chooseen the wrong file when I minified the file embarrassed
      And this is probably the only one file that didn’t changed !

      Find attached the compacted file. Simply replace the wrong file by this one.

      THe SVN branch is updated and I will update the downloadable zip of the demo site tomorrow.
        • 19741
        • 90 Posts
        Thank you for your fast reply - i just downloaded the new version.
          Bye,
          Mithrandir