OOTB Search Code Displays Extraneous White Bar
Nov 18, 2010
Currently I'm trying to modify OOTB code for a search box.
I'm not sure if this is best addressed within the JavaScript or CSS.
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 [url] with the search box.
View 1 Replies
ADVERTISEMENT
Dec 13, 2011
I found this for instant search :
demo : [url]
index.php
Now i just want to edit one thing, when you search for something, results are shown under the search field, when you click on each result, goes to a link.
I want when clicking on a result, not going to link, just show that result string on the search field. where should i edit in script?
View 3 Replies
View Related
Oct 9, 2006
I wrote a JavaScript that removes the white space from javascript source code in order to speed up download times.
For instance:
View 3 Replies
View Related
May 19, 2009
Ok so the problem is when I mouse over the left nav menu all is great, when I mouse over the newly created DHTML menu in the middle the seperators(black before mouse over of the DHTML menu) disapear on the left nav menu and there is now white space surrounding the buttons on the left nave menu. IF you switch to full screen mode(F11 I think) I can see the actual graphic on the left nav menu changing and that is what is causing this, but I cant find it in the code.
I have narrowed it down to my framework.js script but no idea where it is within this code. I can post that code in here and maybe you can see what I mean and I will attach a screen shot of the problem.
[url]
[url]
[url]
[url]
View 2 Replies
View Related
Jul 26, 2010
I need a marquee code that displays images in a continuous vertical cycle.
View 7 Replies
View Related
Aug 9, 2007
I want to change this code so that I can have multiple word variables I can change, possibly separated by comas I guess?.. Open to other idea's as well. Do you also know how I can make it so that it's NOT case sensitive? Code:
View 3 Replies
View Related
Nov 27, 2009
Here is the code implemented on the search results page:
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
[code]...
The original code (from my Google custom search control panel) included a FrameWidth of 600 and I changed it to 500 but it didn't make a difference.
View 3 Replies
View Related
Jun 5, 2009
Website for a external search engine for your website, or give me a HTML code or CSS code?
View 1 Replies
View Related
Aug 24, 2010
I'm looking for a script or applet that will allow users to search by zipcode or selected category for results. I would like something already built so I can just customize it to our needs. I'm sure it will need to have a database setup for it to work which I am fine with doing. I can modify scripts and files but I have no idea where to start with this from scratch.
We also use the same data for our "Layar" app for the iphone and driod phones. Has anyone messed with layar scripting and databases? We are using hoopala now which makes data entry simple but we cannot modify their database to add category options. It would be nice to find an alternative to hoopala so we could use one database for both the layar app and the zipcode/category search on our site.
View 2 Replies
View Related
Oct 28, 2011
I am trying to create a javascript code in which I prompt the user for a number (an integer from 0 to 100) to search for, then search a function with the number they entered and then display whether the number was found, and if found, a location where it can be found within the list.
<html>
<head>
</head>
<body>
[Code]....
View 4 Replies
View Related
May 15, 2010
how to fix the coding so when a user select a category it will add a different hidden filed for that option for example: When the user selects category "Men" the hidden filed
Code:
<INPUT TYPE="HIDDEN" NAME="REFERRER" VALUE="http://men.com/acatalog/">
automaticly will be added the search
and when the user selects category "Kids" the hidden filed
Code:
<INPUT TYPE="HIDDEN" NAME="REFERRER" VALUE="http://kids.com/acatalog/">
automaticly will be added the search[code]......
how do I make the "Select Catagory" a Must Choose and if not chosen to give message that say"Please Select a Category"
View 2 Replies
View Related
Dec 10, 2010
I have a search field on the website, and when I type a word to search, it search good, but after preforming the search, the search term from search text field disappears and become the default 'Search' word.
How can I make search term stay in search field after preforming a search ? For example, when I type into the search field 'JavaScript' I want that term to stay in search field and after the search is done.
View 1 Replies
View Related
Nov 17, 2011
How to implementing a "google custom search" feature in a jquery code. I am hoping someone could help me out, as the code is pretty short.
I've been trying for a while but it doesn't work.
The HTML of the page is -
The Jquery script of the website is (this is where I need to implement my custom search code somehow) -
The small arrow that marks the active search icon:
This is my Google custom search code, which I need to implement in the above.
I only need the custom search, I don't really care about the "internal search" or the general (where google searches anywhere) google search. I really need this.
View 7 Replies
View Related
May 11, 2011
how to create a "search business by zipcode" code? [URL]
View 1 Replies
View Related
Aug 18, 2010
I have created a similar smart search like yellowpages:[URL]... Here is the problem I have with mine:
Lets say I search 'Attorneys' I start typing 'Att' ... then 'Attorneys' shows up in the smart search so I click on it and press enter. The next time I start typing 'Att' my browsers saved search field pops up over the websites smart search. Here is an image which might help explain the problem a bit more:
View 1 Replies
View Related
Jul 13, 2011
how is clearing search box with click on search results?
jquery:
var strToMatch = $("#hotel").val();
$('.list_name p').each(function () {
if (this.innerHTML.indexOf(strToMatch) > -1) {
[Code]....
View 1 Replies
View Related
May 23, 2011
I have chosen to use Google Custom Search with my website and was given the following code, my question is, how can i pass a search query from my homepage which has a standard form on there to the search page which holds this code?
I am given a search box within this code but would prefer to use my own on the homepage...
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'en'});
[Code]....
View 3 Replies
View Related
Aug 24, 2011
I have a javascript that allows me to search text on a page.What I want to do is to limit the search area and not search the entire page.
Here is an example page:
[URL]
View 1 Replies
View Related
Feb 15, 2012
I have two grids, they both display buttons. One grid displays numbers, true or false and yes or no, and the other grid displays letters, true, false, yes and no.
The second grid is not displayed in the code (used css to not display second grid buttons (.answerBtns)) Now using the getButtons() function, if the user selects button "1" in first grid (the grid which you have to open using (Open Grid) link, then it should display button "A" in second grid, if user selects button "2" in first grid, then it should displays buttons "A" and "B" in second grid, if "3" then display "A", "B" and "C" and so on.
Now except using if statements and stating which buttons should be displayed and not displayed depending on the button chosen in first grid, is there a more efficent way of coding this so that the display of buttons in second grid depends on what is selected in the first grid?
If it is using an array can somebody show a sample of this in their answer. You can just do it for one example and then I should be able to use that to fill it for the other buttons.
View 1 Replies
View Related
Dec 7, 2011
I have a website that I'm designing where I have the need to search multiple sites at specific times. By this I mean that In some cases, we would want to search only the internet using google, or only search the site that I've created (which currently uses the jse_search.js solution), or only our company's website.
I currently have four different search boxes that will search either the internet, the internal site, a separate internal site, or a third-party website, which all working fine. The problem is that the search boxes take up quite a bit of space, and the layout is becoming cumbersome. Is there a way in Javascript I could use a single search box and a drop-down list to select which method to use? The code I'm currently using is below. With the exception of the Google search function, I've modified some of the site names to general site names and paths to preserve the company's anonymity:
Code in the <head> tag:
<script language="JavaScript1.3" type="text/javascript" src="jse_form.js">
</script>
Code in the <body> tag:
<!--Begin Internal Site Search 1!-->
[Code]...
View 2 Replies
View Related
Aug 27, 2009
is it possible via Javascript to search certain websites with certain keywords without having to use specific search engines?
example search only the following:
1. www.yyy.com
2. www.aaa.com
3. www.zzz.com
for the keyword "Laminat" and open the sites accordingly.
View 8 Replies
View Related
Mar 15, 2006
I am creating a class for all of my code snippets, using a formatted paragraph (and "word-wrap: pre") to keep formayting intact. The problem is that in keeping my HTML files formatted nicely, they are indented, and due to the "pre" formatting the indentation is kept. Code:
View 2 Replies
View Related
Dec 21, 2009
Why this code doesn't work? All I want to do is removing all the white spaces.
JavaScript
function validateForm(){
var postcode1 = (document.form1.textPostcode1.value).replace(/^s*|s*$/g, "");
if (postcode1 == "") {
[Code].....
View 2 Replies
View Related
Jul 23, 2005
I've about 50`000 jpg images on a dir. Some images have a white frame, other
only 2 white lines, sometimes vertically, sometimes horizontally.
I've to show those image on a darkgrey background, and the result is ugly.
It's there any way to detect those white lines, then change their color for
showing on the screen ? I won't change the color of the frame on the image
itself, but when showing them. Also take in mind that some parts of the image are white, and they must be kept white!
View 1 Replies
View Related
Feb 17, 2006
What is the best way to white list a set of allowable characters using
regex or replace? I understand it is safer to whitelist than to
blacklist, but am not sure how to go about it.
View 4 Replies
View Related
Aug 17, 2011
A website I've been working on has a black bar across the bottom. Under some conditions, however, there is a gap between the bar and the bottom of the page -- white for the body. The conditions vary between browsers and OSes. To keep things simple, I'll describe what happens with my principle development environment -- Chrome under Ubuntu.
The main body of the website is fixed width, centered against a neutral background. If the browser window is narrowed so that a horizontal scrollbar appears, the gap appears.
I have tried various things to find the gap so I can move the bar down or whatever but nothing seems to work. I tried using the document height but I found that it is greater than the actual display area which probably means that it is including something not visible (which is fine) but how do I reliably determine the extra? Or is there another solution I should be looking at (I won't bother listing all that I have tried)?
View 4 Replies
View Related