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.
I have been working with different codes to get a search form working with a database.I have a search form based on drop down option values, what I would like to do is select a "company" and append the search term to the company's value.E.G the form would be something like:
There will be a free text area which will allow users to input their search term but need this go feed into the above value of "valueisfromsearch". Upon submit, the user will be presented with their results in their browser.Is this possible mid-URL? I've seen info on Javascript Query String Parameters but don't really understand it that well.
I have very limited experience with Javascript. Can someone refer me to info on how to determine the referring URL and the search term used by a visitor just prior to his landing on my web page?
I would like to embed the search results of the Google books search into my website. It should be like Google News elements widget supplied by google itself. I need to have results and not the custom search box.
I´m using Autocomplete - jQuery plugin 1.0.2 .. I know has been upgraded to another plugging but i want to continue using the old one.
I have on issue that I would like to get rid of it but I don´t know how. The problem is that when a term is searched, the autocomplete list suggest the same term multiple times, as many times as there are products with the same name, lets say the same text "cold beer". I just want that autocomplete suggest the term one time.
If I wanted to extract certain parts of the URL... how can I do this? I know how to extract the entire URL or just the search query but what if i want to do this /boxscore.asp?w=2&s=4&yr=Just extract the numbers 2 and 4 from the url. I want to make a new link for this site I am on to plug those 2 numbers into here/game.asp?gnum=2&gslot=4
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!-->
I have this script, where I want it to use a multi-user login. the code is below.
[Code]...
I have 2 problems. One is that mainly, it doesn't work! And Two, is there someway you can block an external script from being viewed in a browser, or someway to keep people from reading the Usernames and Passwords?
In a string (that contain the Flash version installed), I want to replace:
all "," by "." "win" by <nothing> all spaces by <nothing> So far I do it this way: strFlashVer = strFlashVer.replace(/,/g, '.'); strFlashVer = strFlashVer.replace('win', ''); strFlashVer = strFlashVer.replace(/ /g, '');
but I'm sure theres better way (I'm not really good with reg exp).
How would you create a text field that allows users to select different search engines, and then search their keyword. Essentially what I'm looking for is a something similar to the default multiple search field that you see in Firefox and Safari.At this point in time I have the multiple search feature implemented. But all I really have is a <select> next to a <input>. What I want is something that combines the two. Basically I want the look and feel of Firefox/Safari default multiple search field.
I'm wondering if the <input type="search" /> has the capability of adding search engines to the end of the drop down list. In Safari if you click on the magnifying glass on the search box, you'll see search engines at the very bottom. I'm wondering if I can do that to my webpage using <input type="search" />, but having my own search engines specified.
I'm using quick search plugin (URL...) in filtering rows in a group of tables.The problem is that the old vesion of Quick search may act on multiple tables as long they have the same table_id while the new vesion acts on the first table only.
1-the number of tables is very large (in some pages may be 500 tables).
2-the action of Quick search is applied automaticaly as the user type any text in the input text box. so i don't know any way to make a loop to call the function once for each table.
I want to make a search field for my site where the user can enter his query then select which site he would like to search the query on. Like www.torrents.to has, basically just like that. I know nothing about coding, could somebody write the code for me and tell me where to put my links, directory stuff etc...?
There are multiple intranet pages with a list of names on them that are updated regularly.At the moment, there is no easy way to check if a name is on the pages without going in to each one at a time and searching them individually.
Is there a javascript script I could use to search all of the pages at the same time, and if a match is found, open the relevant page and highlight the result?
I have 4 arrays that all contain data linked by the index. I have 3 drop down boxes on a web page that give the user 3 ways to search for data. The top one is mandatory the other two are optional. I've managed to create the code to search using the mandatory box but cant figure out how to expand the search.
Here is the function that deals with the search data: function findFlights(){ var yourAirline = readTheAirline(); var result = 'Here are your flights <BR>'; var choose = 'Choose your destination';
for (var index = 0; index < flightTimes.length; index++){ var flight = flightDestinations[index]; var airline = flightOperators[index]; if (yourDestination == flight){ var b = flightTimes[index]; var c = flightDestinations[index]; var d = flightOperators[index]; var e = flightFares[index]; var message = b + ' to ' + c + ' operated by ' + d + '. £' + e + '.';
result = result + message + '<BR>'; }if (yourDestination == choose){ result = 'Please choose a destination city from the destination menu and then click Find flights again.'; }}displayMessage(result);}
If this search function is included in an include file with other functions it will run more than once if you click another function first, then come back to it to do another search.
For example if I click the next page function, then decide to click for a new search it runs more than once: Next page function:
Code: $(document).ready(function() { $('a#nextpage').click(function() { var page = $(this).attr('page'); var searchval = $(this).attr('schval'); var maxpage = $(this).attr('maxpage'); $.post("findowner.php", { p1 : searchval, page : page }, function(data){ if (data.length>0){ $("#ownerIDdiv2").html(data); } }); }); }); //end
However, if I put the first search function in a separate include file all works perfect. Why it runs multiple times if it is grouped among other functions?
The thing is that first I need to detect if the div id is "sidebar" if its "sidebar" then it will pickup all the text inside h2 tag and will search for a1 or a2 in the text.If a1 is found then it will pickup the id html2 and make this div only visible.So in this case it will pickup id html2 and make it visible while other ids like html1 and html3 will be hidden.
I don't have a clue what i'm doing with this and don't expect someone to just give me the code if it is actually possible (although it would be nice). I've created a site and in the admin area the page will update and tell me if there is a new message from a user, I have this page automatically refreshing every 5 minutes and wondered if it's possible to play a sound file if the term "unread" appears anywhere on the page?
I am creating a game which will need to create arrays and store variables for thousands of different users. I have created about 15 functions that will need to store their changes to variables so that the game can progress.show me a simplistic way to store a variable altered or created in a function longterm?
What is jQuery's long-term strategy for browser support - cut off browsers after a certain number of years or when going below a certain market share? [I'm asking because of the current trend among some webdevs and also library developers advocating to remove IE6 support and force these users to upgrade their browser. I work with several clients that do not want to "lead the way" in this respect, and need to support IE6 as long as it has a fair usage share, which may be for several more
I'm having an issue with doing a simple js task. I have a list of hyperlinks that contain various paths. For instance: a href="[URL] a href="[URL]
What I need is to remove the term "content" from all the hyperlinks in it's contain div. There is got to be a simple way of doing this and I can't seem to find the right direction. I also need to have the targets changed as well, which I was able to complete. window.onload = function(){
var anchors = document.getElementById('containerDiv').getElementsByTagName('a'); var links = "content"; for (var i=0; i<anchors.length; i++){ anchors[i].setAttribute('target', '_blank'); } }
After retrieving a record from the database and displaying one of its text field in an input-type textbox, I click on a word and it'll store or show the current position of cursor in a variable. I have no success with IE's caretPos.
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?
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: