Since you need to post a form to the search page, you can only accomplish this either with a submit button, or using javascript to get the current value of the form field, and submit it to your search page.
I'm no javascript expert but wouldnt that link still go to /search.aspx without submitting the form?
Wouldn't it make more sense to link to href="#"?
Also change the method to post in the form rather than get as you are not forwarding the search2 field in the URL. Shouldnt the input field be something other than search2 to work with XSLT search.
A link instead of a button to start Xslt search
Hi,
Is there a way to replace the standard button (search) with a link as provided by the XSLT Search package. I tried serval options but did not succeed.
Kind regards,
Bas
Since you need to post a form to the search page, you can only accomplish this either with a submit button, or using javascript to get the current value of the form field, and submit it to your search page.
Hi Stepan,
I used javascript to do the submit. See the code below:
But I don't get any search results. I do see that the submit is done!
Regards
I'm no javascript expert but wouldnt that link still go to /search.aspx without submitting the form?
Wouldn't it make more sense to link to href="#"?
Also change the method to post in the form rather than get as you are not forwarding the search2 field in the URL. Shouldnt the input field be something other than search2 to work with XSLT search.
DC
Thanks!
The href in the link did the trick. The name="search2" is lagecy from testing. The name should be search.
Regards
is working on a reply...