Mike,
Quote:
When I moved the code to the search directory, I had to copy the directories Keyoti_SearchEngine_Web_Common & KeyotiSearchAdministration to the root of my site and put the Keyoti_Search_Index directory inside Keyoti_SearchEngine_Web_Common in order to get the search running. I still needed Keyoti_SearchEngine_Web_Common under the search directory as well. I wish I could have kept all the directories under the search folder.
Just for reference, you can have the folders under the 'search' folder, but you probably need to change the script import to "Keyoti_SearchEngine_Web_Common" instead of "/Keyoti_SearchEngine_Web_Common" - assuming that's what you had before.
Regarding the main question, I posted this in the other thread, but let me post again in case it got missed:
The thing about your code is you are doing this
window.location = 'search_results.aspx?query=' + inForm.query.value;
Couple of things not exactly right, firstly I believe it should be window.location.href =, whether there is any difference or any browser where it wouldn't work, I don't know.
Secondly, and this might have cause what you're seeing, since it's down to how the server handles the request, you really need to encode the inForm.query.value, eg.
window.location.href = 'search_results.aspx?query=' + encodeURIComponent(inForm.query.value);
otherwise your " and spaces are not going to be encoded at all and could be mishandled server side.
Please let me know if that helps
Thanks
Jim
-your feedback is helpful to other users, thank you!