We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15987
    • 786 Posts
    That sounds like it could be possible, Ihadn’t thought of doing it that way. Has anyone used a snippet to do this before? If not I will have to look into doing it. I think it sounds like a good idea.
      • 25663 MODX Staff
      • 12,272 Posts
      Out of curiosity, what happens if someone happens to have JS turned off with this... does it degrade and work like a regular old search form?
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 7923
        • 4,213 Posts
        Quote from: kylej at Mar 18, 2006, 03:07 PM
        If the user does not have javascript enabled, the snippet will use the default searching of the FlexSearchForm snippet.
        Looking at this quote from the first post, I would guess "yes".. wink grin


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 15987
          • 786 Posts
          Yep, it works just like the old search form. I use javascript to change the functionality of the form, so if there is no javascript, it does the original form action.
            • 25663 MODX Staff
            • 12,272 Posts
            And then some days, you just don’t read... wink
              Ryan Thrash, MODX Co-Founder
              Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
              • 15987
              • 786 Posts
              Quote from: kylej at Mar 18, 2006, 03:07 PM


              Updated: 03/20/2006 - After receiving some feedback I have modified the snippet a little. There is now a button that appears to close the search box after a search. Also I have made the snippet output the parameters set in the snippet to a bit of javascript so that I can use them in the ajax call. So you do not have to update the file ajaxSearch.php for your search settings. A thank you goes out to sottwell for these great ideas.


              FYI
                • 6726
                • 7,075 Posts
                Thanks for the quick update, this is really a COOL snippet, I’d push in favor of having it in the distro grin
                  .: COO - Commerce Guys - Community Driven Innovation :.


                  MODx est l'outil id
                  • 25663 MODX Staff
                  • 12,272 Posts
                  This is so gonna be in the 0.9.2. smiley
                    Ryan Thrash, MODX Co-Founder
                    Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • 15987
                    • 786 Posts
                    That would be great! Feel free to look at the code and make any changes necessary to include it.
                      • 18397
                      • 3,250 Posts
                      Can you merge in the FlexSearchForm result keyword highlighting mod? I think that would make the ULTIMATE search snippet!

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