We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27708 MODX Staff
    • 2,502 Posts
    I’m looking to be able to move the images for AjaxSearch from appearing to the right of the search form to be elsewhere such as on the top right of ajaxSearchResults. Any links to posts or help would be surely appreciated.

    Cheers,

    Jay
      Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
      • 5811
      • 1,717 Posts
      Hi Smashingred,

      Do you speak of the ajax indicator image and of the cross (close) image ? If yes, you could ajust their positions by the following styles:
      #searchClose {
      position:absolute;
      top: 40px;
      left: 20px;
      }
      
      #indicator {
      position:absolute;
      float: left;
      top: 40px;
      }
      And to replace image, change the name of file in the js/ajaxSearch.js file (line 48 and 58)
        • 27708 MODX Staff
        • 2,502 Posts
        Exactly! Thanks smiley

          Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
          • 27708 MODX Staff
          • 2,502 Posts
          Got it working and I noticed that in IE7 I am getting the Flash of Unstyled Content (FOUC) bug. Any thoughts on where it is coming from?
            Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
            • 33372
            • 1,611 Posts
            Are you using @import for your CSS?

            http://www.bluerobot.com/web/css/fouc.asp/
              "Things are not what they appear to be; nor are they otherwise." - Buddha

              "Well, gee, Buddha - that wasn't very helpful..." - ZAP

              Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
              • 27708 MODX Staff
              • 2,502 Posts
              On additional review, it isn’t unstyled it actually seems to be the that the JS resize on the results box appears to fliker after the page loads. I am not sure where this is coming from.
                Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. Blog ✦ Twitter ✦ LinkedIn ✦ GitHub
                • 30562
                • 99 Posts
                @rthrash

                Here has found a documentation about search engine Lucene in Zend Framework. Library is written on PHP: http://framework.zend.com/manual/en/zend.search.lucene.html#ftn.id2740231
                  • 3232
                  • 380 Posts
                  I’m sorry I started to look through the 30+ pages of this post but after the first 5 it grew tiresome. I’m sorry if this has already been answered but is it possible to have the search form display in one area of the site (right hand column on every page) and then the results only on one page (the search results page would also have this same right rail)

                  I currently have the this call in my right column which appears on every page includeing the results.

                  [!AjaxSearch? &ajaxSearch=`0` &AS_landing=`8` &AS_showResults=`0`!]

                  and then on the results page i have the following call..

                  [!AjaxSearch? &ajaxSearch=`0` &AS_landing= `8` &AS_showForm=`0` &grabMax=`10` &highlightResult=`1` &AS_showResults=`1`!]

                  Yet it doesnt seem to be working. Any help would greatly be appreciated.
                    • 5811
                    • 1,717 Posts
                    I currently have the this call in my right column which appears on every page includeing the results.

                    [!AjaxSearch? &ajaxSearch=`0` &AS_landing=`8` &AS_showResults=`0`!]
                    OK It’s correct.

                    and then on the results page i have the following call..

                    [!AjaxSearch? &ajaxSearch=`0` &AS_landing= `8` &AS_showForm=`0` &grabMax=`10` &highlightResult=`1` &AS_showResults=`1`!]
                    NOK. In your landing page try:
                    [!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0` &grabMax=`10` &highlightResult=`1` &AS_showResults=`1`!]



                      • 3232
                      • 380 Posts
                      This did the trick, thank you

                      Quote from: coroico at Feb 26, 2008, 06:34 PM

                      I currently have the this call in my right column which appears on every page includeing the results.

                      [!AjaxSearch? &ajaxSearch=`0` &AS_landing=`8` &AS_showResults=`0`!]
                      OK It’s correct.

                      and then on the results page i have the following call..

                      [!AjaxSearch? &ajaxSearch=`0` &AS_landing= `8` &AS_showForm=`0` &grabMax=`10` &highlightResult=`1` &AS_showResults=`1`!]
                      NOK. In your landing page try:
                      [!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0` &grabMax=`10` &highlightResult=`1` &AS_showResults=`1`!]




                      This discussion is closed to further replies. Keep calm and carry on.