Copied to clipboard

Flag this post as spam?

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


  • Carlos 338 posts 472 karma points
    Dec 20, 2011 @ 17:42
    Carlos
    0

    Search Not using .Net but using XSLT Query Strings and jQuery?

    I am not sure if this can be done. BUT I know it is possible. I have bits and pieces but can't put them together.

    We are using 4.5.2, can't upgrade to 4.7 yet.  

    We are making a filter search using <select><option> droplists. 3 droplists and trying to tie a submit button to it. We want to use XSLT, not use a form tag around the Select because of the Form tag wrapping the entire contentplaceholder and the search needs to go within the form.

    Idea is to use jQuery to add the query string to the URL on button click and use a window.location to redirect to our results page.  We need to get the properties from our droplists datatypes and search on those criteria. 

    I thought that Warren Buckley or Neils Hartvig made a video about how to search only using XSLT or XSLT and Examine but I can not find it.  I can only find it using the ASP.Net control or Razor. Since Razor is not an option in 4.5.2. We are a bit stuck. and an ASP.Net control would cause issues from the example video because we can not add an HTML form tag in side our form runat=server tag.

    Hence why we want to leverage XSLT only using Query strings and probably jQuery to generate the query string in the URL to show the results on the results page.

    Any help would be most greatly appreciated. Please!

  • awm 187 posts 376 karma points
    Dec 20, 2011 @ 17:52
    awm
    0

    Sounds like it might be possible for you to use a combination of the XSLT search project and your own macros, as I *think* the search uses querystring values.

    In theory you could create your own macro that renders the drop down lists/jquery, and then you could build a querystring to send to the search page that uses the XSLT search to actually do the searching?

    Here's the project: http://our.umbraco.org/projects/website-utilities/xsltsearch

  • Carlos 338 posts 472 karma points
    Dec 20, 2011 @ 18:45
    Carlos
    0

    In theory that would work.

    But the thing is. We have 3 separate <select><option> droplists.   We will try it. But if anyone else has any suggestions. Please let us know. 

    We do like the way the XSLT search works.  May take some work to get it to work. 

    Thanks.

  • Carlos 338 posts 472 karma points
    Dec 20, 2011 @ 19:10
    Carlos
    0

    Ok I found it it is not an &amp; it is a URL space or the %20 character that ties the string together of course. Since it is a text string getting past into the box.

Please Sign in or register to post replies

Write your reply to:

Draft