Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Delay till page is loaded - SearchUnit - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
DMacy
#1 Posted : Tuesday, January 9, 2018 9:47:18 PM
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
Jim
#2 Posted : Wednesday, January 10, 2018 6:29:39 PM
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!


DMacy
#3 Posted : Wednesday, January 10, 2018 7:27:34 PM
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
Jim
#4 Posted : Wednesday, January 10, 2018 8:42:17 PM
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!


DMacy
#5 Posted : Wednesday, January 10, 2018 8:53:59 PM
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
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.