We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    Hello all!

    I’m not new at MODx, but recently I upgraded AjaxSearch to v1.9 and having some problems with customisation smiley

    I hope you can help me out here....

    I WANT:
    - a NON-AJAX search form in my header section. When something is searched go to some landing page (ex. &landingPage=`8`);
    - on landing page (which is id=8) output all the results + above the results have ajax enabled search form (while maintaining upper non-ajax search form in header)

    Can someone help me out with example codes????

    Need:
    1. ajaxsearch code for the header search form (ex. [!AjaxSearch? &ajaxSearch=`0` &landingPage= `8` ....... !])
    2. landing page AS call + AS form TPL
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 29091
      • 88 Posts
      SymbioticDesign Reply #2, 16 years ago
      I’m having problems, too. I am running MODx Evo 1.0.4 and AjaxSearch 1.9, but it isn’t going to my landing page.

      My call is:

      [!AjaxSearch? &ajaxSearch=`0` &advSearch=`allwords` &AS_landing=`21`!]

      All the results wind-up in the sidebar underneath the form.

      Wow... I just lost power and gotta go see what’s wrong. But obviously it does work. I just don’t understand why it isn’t finding my landing page and displaying the results there.

      Thanks! -Doug

      Config:
      Build Date Aug 26 2010 08:49:13
      Configure Command ’./configure’ ’--enable-fastcgi’ ’--prefix=/usr/local/php5’ ’--with-config-file-path=/web/conf’ ’--disable-posix’ ’--enable-bcmath’ ’--enable-calendar’ ’--with-curl=/usr/bin/curl’ ’--with-gdbm’ ’--enable-exif’ ’--enable-ftp’ ’--with-gd’ ’--with-freetype-dir=/usr’ ’--with-jpeg-dir=/usr’ ’--with-png-dir=/usr/bin/libpng-config’ ’--enable-gd-native-ttf’ ’--with-gettext’ ’--with-mcrypt=/usr/bin/libmcrypt-config’ ’--with-mhash’ ’--with-mysql=/usr’ ’--with-mysqli=/usr/bin/mysql_config’ ’--with-openssl’ ’--with-pdo-mysql=/usr’ ’--with-pspell’ ’--enable-soap’ ’--enable-wddx’ ’--with-xsl’ ’--with-zlib’ ’--enable-mbstring’ ’--enable-zip’
      Server API CGI/FastCGI
      Virtual Directory Support disabled
      Configuration File (php.ini) Path /web/conf
      Loaded Configuration File /web/conf/php5.ini
      Scan this dir for additional .ini files (none)
      additional .ini files parsed (none)
      PHP API 20041225
      PHP Extension 20060613
      Zend Extension 220060519
      Debug Build no
      Thread Safety disabled
      Zend Memory Manager enabled
      IPv6 Support enabled
      Registered PHP Streams https, ftps, compress.zlib, php, file, data, http, ftp, zip
      Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
      Registered Stream Filters zlib.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed

      I think my MySQL database is 5.0.3
      Zend is v2.2.0

      BCMath support enabled
      Calendar support enabled

      GD Support enabled
      GD Version bundled (2.0.34 compatible)
      FreeType Support enabled
      FreeType Linkage with freetype
      FreeType Version 2.2.1
      GIF Read Support enabled
      GIF Create Support enabled
      JPG Support enabled
      PNG Support enabled
      WBMP Support enabled
      XBM Support enabled

      GetText Support enabled

      hash support enabled
      Hashing Engines md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

      iconv support enabled
      iconv implementation glibc
      iconv library version 2.5

      json support enabled
      json version 1.2.1

      libXML support active
      libXML Version 2.6.26
      libXML streams enabled

      Multibyte Support enabled
      Multibyte string engine libmbfl
      Multibyte (japanese) regex support enabled
      Multibyte regex (oniguruma) version 4.4.4
      Multibyte regex (oniguruma) backtrack check On

      MHASH support Enabled
      MHASH API Version 20020524

      MYSQLI
      Client API library version 5.0.45
      Client API header version 5.0.77

      PDO drivers mysql, sqlite, sqlite2
      PDO Driver for MySQL, client library version 5.0.45

      PSpell Support enabled

      Reflection enabled
      Version $Id: php_reflection.c 300129 2010-06-03 00:43:37Z felipe $

      Session Support enabled
      Registered save handlers files user sqlite
      Registered serializer handlers php php_binary wddx

      Simplexml support enabled
      Revision $Revision: 299016 $
      Schema support enabled

      Soap Client enabled
      Soap Server enabled

      Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
      Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

      PECL Module version 2.0-dev $Id: sqlite.c 298697 2010-04-28 12:10:10Z iliaa $
      SQLite Library 2.8.17
      SQLite Encoding iso8859

      Regex Library Bundled library enabled
      Dynamic Library Support enabled

      Tokenizer Support enabled

      WDDX Session Serializer enabled

      XML Support active
      XML Namespace Support active
      libxml2 Version 2.6.26

      XMLReader enabled

      XMLWriter enabled

      XSL enabled
      libxslt Version 1.1.17
      libxslt compiled against libxml Version 2.6.26
      EXSLT enabled
      libexslt Version 1.1.17

      Zip enabled
      Extension Version $Id: php_zip.c 293036 2010-01-03 09:23:27Z sebastian $
      Zip version 1.8.11
      Libzip version 0.9.0

      ZLib Support enabled
      Stream Wrapper support compress.zlib://
      Stream Filter support zlib.inflate, zlib.deflate
      Compiled Version 1.2.3
      Linked Version 1.2.3

      -DP
        Doug Peters, Symbiotic Design. (605) 251-8973
        http://W3DN.com | http://www.DomainHostmaster.com
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Look over the docs for the 1.9 version of AS. The parameter names have changed.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 21054
          • 78 Posts
          I’ve got the same problem where at the landing page, the ajax search results are also displayed under the search box. I’ve seen two people with the same problem but haven’t found an answer to this issue.

          Any ideas anyone?
            • 5811
            • 1,717 Posts

            add &showResults=`0` in your first AS snippet call.

            Extract from ajaxSearch_readme.txt file:
            ---- &showResults [1 | 0] (optional)
                    Show the results with the snippet. (For non-ajax search)


            [!AjaxSearch? &ajaxSearch=`0` &showResults=`0` &advSearch=`allwords` &AS_landing=`21`!]