|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
In one application of SearchUnit on our site, I insert the search box and button in JavaScript, not VB.NET. I want to be able to change the button text "Search" to a Spanish word. How do I do this?
I'd also like to be able to turn off autocomplete when typing in the search box. How do I do this?
Thanks!
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Yes, you can do it like this (https://keyoti.com/products/search/dotNetWeb/HtmlHelp8/?topic=UserGuide/Examples/JS%20Usage/BasicSearch.html) <div id="sew_searchBoxControl"> <input type="text" id="sew_searchBox" style="border: 2px solid black; font-size:20px;"/> <input type="button" onclick="keyotiSearchBox.doSearch()" id="sew_searchButton" text="Buscar" /> </div> Autocomplete: https://keyoti.com/produ...uide/AutoCompleteJS.htm
keyotiSearchAutocomplete.sew_enabled = false; -your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
Thanks, Jim!
The replacement of the button text worked fine (changing the text property name to value).
I added the Autocomplete line to set enabled to false, but I'm still getting the dropdown list of suggestions.
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
keyotiSearchAutocomplete.sew_enabled is only checked once, as the page loads (when jQuery's document ready event fires to be precise). So you must make sure it is set before that happens - that would be my guess. -your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
Moving it earlier in the load process fixed it. Thanks, Jim!
|
|