|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
On some of our computers and Internet connections, we have the situation where, if you click in the Keyoti QueryTextBox before the web page is finished loading, it doesn't take the typing as search terms, but rather simply refreshes the page when the SearchButton is clicked. We have some gray text initially in the textbox (such as "Enter search terms here") that is erased by JavaScript when the user first clicks in the textbox, but in the case where the page isn't finished loading when the user clicks in the textbox, some of the gray text is retained along with the user's typing.
Is there anything in SearchUnit that would help us overcome this situation, or do I need to build in some sort of test or delay myself?
Thanks!
Dan
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
It seems to be working fine here with v7 (and I would guess earlier versions), so the problem could be in your code. I don't know if your placeholder/watermark text is done yourself or through our code but you can do it like this Code: <SearchEngine:SearchBox ClientIDMode="AutoID" runat='server' ResultPageURL='.' WatermarkVisible=True WatermarkColor="140, 140, 140" WatermarkText="Search" ID="SearchBox1" >
I tested it with Fiddler, with Rules->Performance->Modem speeds and I added a big JPG to the page to slow it right down. Best Jim -your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
Thanks, Jim! I'll see if using the watermark instead of my code changes its behavior.
How do I change the text color to black after the user clicks in the textbox (and the watermark goes away)?
Dan
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
That colour change is handled for you. -your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
You're right! I had an extra CSS class assigned that I forgot to delete.
Thanks for your help!
Dan
|
|