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

    I have tested AjaxSearch-042506 with some japanese encodings and server settings.
    The snippet runs almost ideal.

    there is one trouble.
    With encodings except UTF-8, "Search Terms" was garbled in "AS_ajax_resultLink".
    That is solved by following modification.

    in AjaxSearch.php Line 84

    from
                $result .='  <a class="AS_ajax_resultLink" href="index.php?id='.strval($row['id']).'&searched='.urlencode($_GET['search']).'&highlight='.urlencode($highlightClass).'" title="' . $row['longtitle'] . '">' . $row['pagetitle'] . "</a>";
    

    to
                $result .='  <a class="AS_ajax_resultLink" href="index.php?id='.strval($row['id']).'&searched='.urlencode($searchString).'&highlight='.urlencode($highlightClass).'" title="' . $row['longtitle'] . '">' . $row['pagetitle'] . "</a>";
    

    Thanks.
      • 15987
      • 786 Posts
      Thanks for the update, I will get that fix put in the code.

      Let me know if you find anything else.

      Kyle
        • 15987
        • 786 Posts
        Here is the final version for a while. It only contains eastbinds previous fix. If there are any additional features or problems go ahead and post them here and I will get to them when I have time.

        Kyle
          • 19777
          • 35 Posts
          Any future possibility to search through keywords, categories or authors designated in one or more TVs? I would love to see this incorporated in a search snippet.

          I would also like to have the output of the search in a chunk template, it might be called with something like &tpl=`chunkname` and &jstpl=`chunkname` much like how Newslisting handles templates, with placeholders and the like.

          Nice snippet!

          cheers

          mark j
            • 15987
            • 786 Posts
            Mark,
            Searching through tvs is definatly something that is on the table and will be addressed when time allows.

            I also like the idea of outputting to a template with placeholders.

            Thanks for the suggestions, I will try to get back to this snippet after I finish some other things I am working on.

            Kyle
              • 6726
              • 7,075 Posts
              Quote from: kylej at May 17, 2006, 09:28 AM
              Mark, Searching through tvs is definatly something that is on the table and will be addressed when time allows.

              It seems the code written by xyzvisual has gone unoticed (but it’s buried deep in the forum) so I’ll bring it up again (how nice is human search engine wink ? ) : Before re-inventing the wheel, maybe look at FlexSearchFormTVars I don’t know if it’s of any help, since I have never been able to make it work nor really grasp what it’s about...
                .: COO - Commerce Guys - Community Driven Innovation :.


                MODx est l&#39;outil id
                • 15987
                • 786 Posts
                David,
                Thanks for the pointer. From what I can tell that code adds a dropdown to the form that lets a user to select a section of the site to search. That must be some old code too, there are references to the etomite oblject instead of the modx object in there also.

                What really needs added with tvs though is the ability to search through the tvs associated with a document that contain data. So when you search for something if the content is stored in a tv that matches the search the correct page will be returned.

                Kyle
                  • 6726
                  • 7,075 Posts
                  Okay, thanks for the explanation smiley

                  Searching TVs would be great indeed, I guess I am not the only one using them to store custom content like product catalog, directory or whatever...
                    .: COO - Commerce Guys - Community Driven Innovation :.


                    MODx est l&#39;outil id
                    • 36541
                    • 222 Posts
                    Quote from: mjarecki at May 08, 2006, 02:29 AM

                    I would also like to have the output of the search in a chunk template, (...) with placeholders and the like.

                    This is VERY, VERY needed feature. Placeholders and use of chunks allow for a much greater flexibility and give a total control over the code. This is what original FlexSearchForm lacks the most, IMO.

                    Anyway, this is a great plugin. I plan to use it on my site.
                      This is the web: the only thing you know about who will come is that you don't know who will come.
                      • 17058
                      • 80 Posts
                      Hi everybody,

                      got the search working (FlexSearch), but not with the nifty ajaxsearh and the fancy transitions.
                      There is no loading.gif, no close.png etc. All the files in assets/snippets/AjaxSearch will not be loaded.
                      I guess the AjaxSearch-snippet will not work in the right way and so there is no including of these files.


                      I running a modX (0.91) installation on a local Server (XAMPP - WIN XP, MYSQL; APACHE). Let the ht.access unmodified.
                      Every document is cachable by default. So whats the problem?
                      Of course, jacascript is activated. got a nice moo.fx-menu running.

                      Thanks in advance. le block
                        le_block is Member of FUTY | Medienagentur aus Leipzig mit Schwerpunkt Marketing, Branding, Print und Webdesign

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