Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
11-18-2010, 05:30 PM #1
- Join Date
- Nov 2010
- Thanked 0 Times in 0 Posts
OOTB search code displays extraneous white bar
Currently I'm trying to modify OOTB code for a search box.
After a search term has been typed in, the users picks a match which opens in a new window, then they close the new window, and try to back space over the typed term, there is a white bar that remains below the text entry box.
For example, if the word bathroom is typed in the text box, a list of possible matching topics is displayed. You pick the option to Where is the bathroom?. This opens a new window/tab - just close the tab. The original search box still displays the term bathroom, but if you backspace to remove the term, then a white bar remains below the text entry box.
How do I get rid of the white bar when the text entry box is empty?
The code being used is shown below - attachment shows the problem as it appears in IE and FF:
A temporary page with the search box.
11-18-2010, 07:36 PM #2
Might want to try to help you, but that JS code is purposely written to be as obscure as possible. Since this only happens with MSIE, and since the dropdown looks much uglier in MSIE, anyway, your IE users may just have to live with it. It's a little disappointing that the list of questions is so small and is prepopulated into the JS code. I would have thought you'd use a database and search it, via AJAX code, instead.Be yourself. No one else is as qualified.