|
|
Rank: Newbie
Joined: 9/3/2008 Posts: 7 Location: Austin, Texas
|
Hi -
I am so close to having my whole site set up. One last thing... setting up the search function. I downloaded xsltSearch and got it installed. It's working. But I need a little help.
Each of my site's pages has a search field + button in a left side bar. I'd like it so that a user can enter in a term, hit "Search" and the results pop up on a new page called search.aspx.
I have the search.aspx page set up and xslt search is working from there. But I can't figure out how to "connect" my side bar search field+button up to the search.aspx page.
Any help is greatly appreciated.
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,831 Location: MA, USA
|
No problem calling xsltsearch from your own form, I do it all the time. Check out this forum thread, it should explain what you're looking for. Shout if you have any questions. cheers, doug.
MVP 2007-2009 - Percipient Studios
|
|
 Rank: Devotee
Joined: 8/7/2008 Posts: 64 Location: Denmark
|
Think you forgot the link drobar? Oh, well... what I did was just placing my own form outside the ASPNET_FORM-tag like this: Code:<form action="/search.aspx" method="post"> ... input field here ... </form>
<?ASPNET_FORM> ... rest of the page here ... </?ASPNET_FORM> skooter.dk (danish)
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,831 Location: MA, USA
|
Sorry about that forgotten link! :blush: You figured it out just the same. As you found, there are only two things you have to do: 1. make your own <form> with the action= property directing to the page that has the xsltsearch macro on it. 2. name the input field "search", because that's the field xsltsearch looks for. That's it! cheers, doug.
MVP 2007-2009 - Percipient Studios
|
|
Rank: Newbie
Joined: 9/3/2008 Posts: 7 Location: Austin, Texas
|
Thanks! I just had the input field named incorrectly. Fixed that, and it works perfectly.
|
|
|
Guest |