We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21800
    • 174 Posts
    This awfull ajaxSearch has a behavior I didn’t find in the forums.

    I found a second block of script call and search header appearing in the html header of the page.
    I tried a lot last days, but didn’t succeed to get it clean.
    So any hint is appeciated.
    [ as1.7.1, standard call, mootols 1.11, &addJscript=`0`, modx0.96, any browser, call in header just below body tag ]

    EDIT:
    exerpt:
    ...
    <script type="text/javascript">var MODX_MEDIA_PATH = "media";</script>

    <script type="text/javascript" src="assets/snippets/ajaxSearch/js/ajaxSearch.js"></script>
    <!-- start AjaxSearch header -->
    <script type="text/javascript">
    config = ’default’;
    as_version = ’1.8.0’;
    debug = 0;
    as_language = ’german’;
    opacity = 1;
    advSearch = ’allwords’;
    whereSearch = ’content,tv’;
    order = ’publishedon,pagetitle’;
    rank = ’pagetitle:100,extract’;
    minChars = 4;
    ajaxMax = 6;
    showMoreResults = 1;
    moreResultsPage = 38;
    extract = ’0:content’;
    extractLength = 150;
    extractEllips = ’...’;
    extractSeparator = ’
    ’;
    formatDate = ’d/m/y : H:i:s’;
    liveSearch = 0;
    docgrp = ’’;
    listIDs = ’’;
    idType = ’parents’;
    depth = 10;
    highlightResult = 1;
    hideMenu = 2;
    hideLink = 1;
    as_filter = ’’;
    tplAjaxResult = ’’;
    tplAjaxResults = ’’;
    stripInput = ’defaultStripInput’;
    stripOutput = ’defaultStripOutput’;
    </script>
    <!-- end AjaxSearch header -->
    <script type="text/javascript" src="assets/snippets/webloginpe/js/ieButtonFix.js"></script>
    <script type="text/javascript" src="assets/snippets/ajaxSearch/js/ajaxSearch.js"></script>
    <!-- start AjaxSearch header -->
    <script type="text/javascript">
    config = ’default’;
    as_version = ’1.8.0’;
    debug = 0;
    as_language = ’german’;
    opacity = 1;
    advSearch = ’allwords’;
    whereSearch = ’content,tv’;
    order = ’publishedon,pagetitle’;
    rank = ’pagetitle:100,extract’;
    minChars = 4;
    ajaxMax = 6;
    showMoreResults = 1;
    moreResultsPage = 38;
    extract = ’0:content’;
    extractLength = 150;
    extractEllips = ’...’;
    extractSeparator = ’
    ’;
    formatDate = ’d/m/y : H:i:s’;
    liveSearch = 0;
    docgrp = ’’;
    listIDs = ’’;
    idType = ’parents’;
    depth = 10;
    highlightResult = 1;
    hideMenu = 2;
    hideLink = 1;
    as_filter = ’’;
    tplAjaxResult = ’’;
    tplAjaxResults = ’’;
    stripInput = ’defaultStripInput’;
    stripOutput = ’defaultStripOutput’;
    </script>
    <!-- end AjaxSearch header -->

    <script type="text/javascript" src="assets/snippets/webloginpe/js/ieButtonFix.js"></script>
    </head>
    ...

    EDIT
    Problem not disapeared when updated to v1.8. ajaxSearch.js loads twice after one search executed.
    Seems to be a great update, so need time to study. Thanx for that great work.