Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Replace search button text - SearchUnit - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
DMacy
#1 Posted : Friday, August 23, 2024 9:47:22 PM
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!
Jim
#2 Posted : Sunday, August 25, 2024 2:18:24 AM
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!


DMacy
#3 Posted : Monday, August 26, 2024 9:13:54 PM
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.
Jim
#4 Posted : Tuesday, August 27, 2024 10:08:04 PM
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!


DMacy
#5 Posted : Tuesday, August 27, 2024 10:40:58 PM
Rank: Advanced Member

Groups: Registered

Joined: 9/1/2010
Posts: 136
Moving it earlier in the load process fixed it. Thanks, Jim!
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.