Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Duc Tran 10 posts 30 karma points
    Sep 13, 2010 @ 06:45
    Duc Tran
    0

    search term string keeps appending in Firefox

    Hi,

     

    This works fine in IE, but when iuse it in the lastest firefox my search term never resets and just keeps appending and searching ont he long string.

    <search-term>,<search-term>,<search-term>,<search-term>,<search-term>,<search-term>, etc

    Anyone else have this problem?

     

    Thanks.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 13, 2010 @ 06:54
    Sebastiaan Janssen
    0

    That is really odd as it's just a simple form post, that could maybe mean all forms act this way in Firefox? Have you tried starting Firefox in safe mode (Start > Programs > Mozilla Firefox > Mozilla Firefox (Safe Mode)) ? Maybe it's one of your extensions.

    Did you make any customizations to the XSLT? Or are you changing any querystring variables?

    I've never seen this behaviour with XSLTsearch in Firefox!

  • Duc Tran 10 posts 30 karma points
    Sep 13, 2010 @ 07:04
    Duc Tran
    0

    The difference is there was an additional search form in the header. xslt and maco properties have not changed. I've disabled the one above the search result for now which seems to have fixed it.

    I need to get the project out so will investigate it further later. thanks.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Sep 13, 2010 @ 07:20
    Sebastiaan Janssen
    0

    Aha, I can see how that can be a problem if the form tag is around your whole site instead of just around the search field. All you really need is a simple bit of HTMLlike this:

    <form action="/search.aspx" method="post">
        <input type="text" name="search" />
        <input type="submit" />
    </form>

    Where search.aspx is your XSLTSearch node.

  • Allan Hawkey 232 posts 303 karma points
    Feb 19, 2011 @ 14:12
    Allan Hawkey
    0

    I'm getting this same issue - in my Master template I have a form tag around the whole page.

    The XSLT search works fine for the first search, but appends all the search terms in a comma separated list if you search more than once.  This returns no results.

    I've tried adding form tags around the input sections of the xslt file, but with no luck.

    Did you ever resolve this?  If so, what was the solution?

  • Connie DeCinko 931 posts 1160 karma points
    Sep 16, 2016 @ 17:14
    Connie DeCinko
    0

    I realize this is a really old thread, but we are now getting this issue after applying new templates to our aging site. So, when you are on the search page, you actually have four search boxes. One in the page header, one in the page footer, one above the search results, and one below the search results. The entire page is wrapped in a single form tag, ala Web Forms. Migrating to MVC and razor is a future project.

    Could I just wrap the XSLT search fields in something, or rename those search fields?

  • Connie DeCinko 931 posts 1160 karma points
    Sep 16, 2016 @ 17:22
    Connie DeCinko
    0

    Here I go again, answering my own question... sort of. I figured out the problem has nothing to do with my search boxes in my page header and footer. The problem is within the search code itself when used in a Web Forms template. You have a single form with two inputs, both named "search". And, in normal HTML fashion, when you have inputs with the same name, their values are sent as a comma separated list. The problem is, when submitting the revised search, knowing which of fields to submit and ignore the other.

Please Sign in or register to post replies

Write your reply to:

Draft