How Can You Make One Search Form Have Many Choices?

Nov 29, 2006

MySpace and Yahoo! have search forms that when you click on the choice (ie web, images, audio) it uses javascript to change the form.

So basically, how can you dynamically change a search form that will give the choice to search different parts of my site?

Basically, it would have to be able to dynamically change the form method and action, and it would have to be able to change the input name.

For example in the front end it would look like this:

Search the {dropdown menu with forum, arcade, site, etc} for { query }

View 4 Replies


ADVERTISEMENT

Adding $ Values In Drop Down Choices And Totaling In Html Form?

Feb 17, 2010

I am creating a html form for the local soccer league for online registration. In a drop down box the user chooses whether in house or travel and both choices have a different fees ao I would like to add a $ value to both options to be displayed in a TOTAL box at the bottom of the form before they submit. I would (if possible) like to have that total displayed on the page they are directed to after submitting the form. This page will have a link to PayPal for the user to pay their fee or I could skip that step and have the user taken directly to PayPal checkout with that total already filled in. Is this at all possible? What are my possiblities? I am NOT any where near a pro at the code writing. I can provide a link to what I have done already if requested.

View 3 Replies View Related

Smart Search Form & Browsers Saved Search Fields?

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

Put Choices In Guessing Game

Apr 15, 2011

how can i put choices in a guessing game. choices such as a,b, c, and d. And if the answer of the player is correct, the game will proceed to level 2, else game over.

View 1 Replies View Related

Combo Box Is Not Populating With Choices?

Jun 26, 2011

I have a problem here. I want to have 3 levels of combo box. The second and third level are supposed to display choices based on the first level. The problem is that, the second is not populated. I have attached my codes here.

View 3 Replies View Related

Make A WHOIS Search Via XMLHTTP

Feb 1, 2004

Save the following code as "WHOIS.hta". Then launch it(For Windows 9x+ & IE 5.5+).
And it's easy to convert it to asp. So it may works well on your web server, too.

<html>
<head>
<title>WHOIS WebService</title>
<!-- Edited by LeXRus http://LeXRus.blueidea.com/ -->
<meta http-equiv="Content-Type" content="application/hta; charset=utf-8">
<HTA:APPLICATION ID="oHTA" APPLICATIONNAME="WHOIS" BORDER="thick" BORDERSTYLE="normal" CAPTION="yes" MAXIMIZEBUTTON="no" MINIMIZEBUTTON="yes" SHOWINTASKBAR="yes" SINGLEINSTANCE="no" SYSMENU="yes" VERSION="0.73B" WINDOWSTATE="normal"/>
<style>
body{background:buttonface;border-width:0px;overflow:auto;}
#domain{border:2px inset; font-size:11px;font-family:verdana;width:200px;text-align:center;}
#submit{border:2px outset;font-size:11px;font-family:verdana;font-weight:bolder;}
textarea{width:100%;height:350px;border:2px inset;font-size:11px;font-family:verdana;overflow:auto;}
div{font-size:11px;font-family:verdana;}
h1{font-size:24px;font-family:tahoma;vertical-align:middle;}
</style>
</head>

<body onload="window.resizeTo(600,500)" onresize="window.resizeTo(600,500)">
<div align="center">
<h1>WHOIS Search</h1>
<u>D</u>omain: <input type="text" id="domain" accesskey="d" value="blueidea.com"/>
&nbsp;<button id="submit" type="button" onclick="submitSearch()" accesskey="s"><u>S</u>ubmit</button>
</div>
<br/>
<div align="center"><textarea id="result"></textarea></div>
<script>
var
url='http://66.165.154.102/whois.asmx',
soapRequestStr='<?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><GetWhoIS xmlns="http://www.webserviceX.NET"><HostName>blueidea.com</HostName></GetWhoIS></SOAP-ENV:Body></SOAP-ENV:Envelope>'

var
xmlhttp=new ActiveXObject('msxml2.xmlhttp')
xmlhttp.onreadystatechange=getReady
xmlhttp.open('POST',url,true)
xmlhttp.setRequestHeader('Referer',url)
xmlhttp.setRequestHeader('Content-Type','text/xml;charset=utf-8')
xmlhttp.setRequestHeader('SOAPAction','http://www.webserviceX.NET/GetWhoIS')
xmlhttp.setRequestHeader('Content-Length',soapRequestStr.length)

var
xmldoc=new ActiveXObject('msxml.domdocument')
xmldoc.loadXML(soapRequestStr)

function submitSearch(){
xmldoc.selectSingleNode('//HostName').text=domain.value
xmlhttp.abort()
xmlhttp.onreadystatechange=getReady
xmlhttp.open('POST',url,true)
xmlhttp.setRequestHeader('Referer',url)
xmlhttp.setRequestHeader('Content-Type','text/xml;charset=utf-8')
xmlhttp.setRequestHeader('SOAPAction','http://www.webserviceX.NET/GetWhoIS')
xmlhttp.setRequestHeader('Content-Length',soapRequestStr.length)
xmlhttp.send(xmldoc)
submit.disabled=true
submit.innerText='Searching...'
}

function getReady(){
if(xmlhttp.readyState==4){
result.value=xmlhttp.responseXML.selectSingleNode('//GetWhoISResult').text.replace(/[sS]+Network Solutions reserves the right to modify these terms at any time./,'')
submit.disabled=false
submit.innerText='Submit'
}
}
</script>
</body>
</html>

View 5 Replies View Related

How Can I Like Make A Browse Button To Search Your Computer

Apr 3, 2007

How can I like make a browse button to search your computer. and whatever file you choose goes on a textbox. then when you press the submit button it loads then after its done loading it puts the file on my website?

View 3 Replies View Related

AJAX :: Make A Search Case Insensitive?

Apr 19, 2011

I am working on a search function to call some data from an XML document. It works fine except for the fact that it's case sensitive.

What method do I need to use from the String object to make it case insensitive, so that a J is the same as j?

I was thinking of changing my text box string to all lower case using toLowerCase(). If I did this, then would I have to do the same thing in the info retrieved from the XML document? I want to make it so that Tom is the same as tom - I'm just wondering where I would have to apply these - to both the XML doc (being read for the output) as well as the text box string (the input).

Just wondering if I'm overthinking this, or on the right track with toLowerCase().

Also, in my search, to filter the results from only entering a few letters (not the entire element, I'm using the substr() method. It seems to work but I don't know if this affecting the case somehow...

View 1 Replies View Related

Make A Link To A Pdf And Bring Up A Search Pane In The Certain Pdf

Jan 26, 2010

search = "#search=%22" + search + "%22";
globalHTML="<html><head><title>" + formTitle + "</title></head>"+"<frameset><frame src='" + pdfURL + search + "'></frame>"+"</frameset></html>";

This works just fine as my javascript to make a link to a pdf and bring up a search pane in the certain pdf. My question is if anyone has tried to highlight search terms in a pdf just by clicking on the link. I can't seem to get that to happen.

View 2 Replies View Related

Embed Search Form Into Page And Search That Page's Content?

Sep 28, 2011

I have a page built in Sharepoint. I need to create a little search box within that page so people can search for names on that same page. It's a page with a lot of text, hence why the search feature is needed.

I can only use an XML editor.

View 4 Replies View Related

Make A Button Link Me To Website With A Designated Search By User?

Mar 14, 2010

I'm new to javascript and I have a button in an interface for an app. It's like drag and drop and i want this button to link you to a certain website searching for what the user types in the searchField1 box. The button is button16. Such as you type dogs into the text box and you click the google button among other search engines and it will redirect you to a google search doing a search for dogs. But how do I make this button search google and search for whats in searchField1. I would really appreciate the help. Im looking everywhere to learn this but just cant find it. If you could tell me how or send me a link to a tutorial code...

View 2 Replies View Related

Setting Multiple Text Field Values Based On Select Choices?

Jan 13, 2009

I'm trying to do something that is slightly complex and I can't find any relevant examples in the usual places,I'm pulling a list of projects (and their IDs) into a select:

Code:
<select name="proj_id" id="proj_id" onchange='setValuz()'>
<option value="1" >1st Project</option>
<option value="2" >2nd Project</option>
</select>

Each project has two associated values, in addition to the unique ID:

[Code]...

Can anyone shed some light on how I could do this? Maybe a link to a "how-to" (if there is one out there)?

View 3 Replies View Related

Make A Search Function Work In A Listbox Full Of Onchange Tags?

Jun 20, 2011

I've got this listbox full of hundreds of employee names. Clicking on a name executes a function using onchange. Because of the length of the list I decided a search function would be really handy and I finally found one that works.

Now the search function, when you type in the input box, scrolls the list to the first matching entry. And that's good, that's what I wanted.

The problem comes in when you try to click on the name the search function found. Nothing happens ofcourse because the onchange tag in the list reacts to changes, not direct clicks.

code:

The list is populated by java but for testing I disabled the function that clears the "Loading" option and I set it to selected. That way the loading option is highlighted by default and the search function is free to highlight something else, then when I click on the search result it works like it's supposed to.

But keeping a highlighted option at the top of the list for that sole purpose isn't very elegant, especially since if you click on it the onchange function tries to execute and generates errors. The only solution I can think of is to use java to generate another option way at the bottom of the list that has the selected attribute but I don't quite know how to do that.

View 1 Replies View Related

The Mootool Adds The Pop Out Effect To A Form Box And The Enables The Nav Switch For 2 Boxes That Contain Different Form Fields For A Search Engine?

Sep 10, 2010

I have two js scripts running on my project at the moment, one is uses mootools and the other uses jquery-1.2.3min, both work but not if they are on the same page.The mootool adds the pop out effect to a form box and the jquery enables the nav switch for 2 boxes that contain different form fields for a search engine. Now I've been reading up on the two and have decided to favour jquery which means I have to reproduce the same effect in mootool but with my limited knowledge it's proven rather hard.The mootool code:

var isExtended = 0;
var height = 165;
var width = 240;

[code]....

View 3 Replies View Related

Search Term To Stay In Search Field After Search?

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

Search Form

Aug 17, 2006

I've plucked a script from the web that gives me something like:

<SCRIPT type="text/javascript" language="Javascript">
<!--
function find() {
if (a == "pag1") window.location ="pag1.html";

but when i refer to that pag1 (replaced by my own page) it gives me a 404

does anyone have a simple script that works?

View 1 Replies View Related

Add Search Term To Form?

Aug 1, 2011

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:

<option value="http://url?term=valueisfromsearch&folder=Company Name">Company</option>

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.

View 6 Replies View Related

On Submit Form Search Web

Oct 20, 2011

I have made a small form for some Javscript practice because I want to get back into it - codes below. You enter a term - it opens a google search page and searches for the term + site:site.com.Can someone point me in the right direction for a couple of things:

1) I'd like it to open in Chrome not IE (eww)
2) I would like to not open a page but display the results in a frame below my form.[code]

View 1 Replies View Related

Search Form With Dropdown List

Feb 15, 2012

I would be grateful if somebody can advise me how I can build site same as [URL] namely, I want to creat same search form on my site where I can search items by location, etc. I am very new to web development and know only HTML and CSS. What I need to learn to be able to create site like this and is it possible at all to do it on my own without hiring any programmers?

View 1 Replies View Related

JQuery :: Update A Field In A Search Form?

Feb 1, 2011

I was making mysearchfieldI though jQuer may help update one dropdown box when a value in one box is updated.

So, my search goes like this, Search for Pet [PetDropDown], Search for Breed [BreedDropDown], Search Location [Text feild] and Search Price [Text Feild].

So in this system i want the [DropDown] box to automatically update it self, with no reloading, thats where jQuery comes in (im guessing) with a list of Breed that link with the Pets DropDown. So if the user picks Dog, then the Breed Dropdown will show Breeds that areassociatedwith Dogs, such as Collie, Jack Russell or Staffordshire Bull Terrier. If a Pet isn't selected then nothing will show.

The information come from the data and a phpstatementfor the Breed DropDown would be as such: $sql = "SELECT id, title, value, type, cat FROM site_cats WHERE type = '[PetDropDown]' "; of course it wont be [PetDownDown] but as a $value such as $petType or $pet.

View 1 Replies View Related

Making A Search Form Where Inputs Only Appear On Certain Selection?

Aug 22, 2011

I want to make a search form where inputs only appear if a certain selection has been made. For example the user selects "Green" then the input "X" appears, and if the user clicks "Black" then input "Y" appears. How can this be done? If so, can someone give me a basic example in code that I can use to copy off?

View 7 Replies View Related

Sumbit A Form With A Link To Search A Database?

Dec 21, 2009

I know this is a combination of asp and javascirpt so bear with me. Can I use a hyperlink to submit a form that can look data up in a database? I am going to have a page that has a bunch of links that will link to other pages. However all the pages are in a database, and I need to look it up via another page to pull up the right page.

<form action="../forms/selectpage.asp" name="form1" method="post">
<td> <a href="java script:document.form1.submit();">page1 </a> </td>
</form>

The only way I can think of is to use a hidden text field to submit when the user sumbits and each link be it's own form, but that's a lot of extra code. If anyone is curious- the look up page is this

Set oRs=Server.CreateObject("adodb.recordset")
strSQL = "SELECT * FROM Pagetable WHERE Location = '" & selected & "' "
oRs.Open strSQL, connforms

Selected would be the data being transfered from the linked page.

View 1 Replies View Related

Search Multiple Intranet Pages With One Form?

Jun 24, 2011

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?

View 4 Replies View Related

JQuery :: Search & Replace RegExp In Entire Form?

Oct 13, 2009

I have a validation regular expression: [?&-#$%():;,._ 0-9a-zA-Z] in a hundreds of pages in edit boxes. Is there anyway I can on-the-fly add two items to this list: (after a page loads)

1) A single quote : '
2) A double quote : "

Sort of like a search and replace for the ENTIRE form (html document).

View 1 Replies View Related

JQuery :: Using Radio Buttons In Form To Search Different URLs?

Nov 29, 2011

I have a form with a search field that I want to search two different databases depending on which radio button is selected. Below is the form I have for searching our library's online catalog. What I'd like to do is add a radio button to this form which would enable the same search box to search WorldCat, which has a different URL

[Code]...

View 2 Replies View Related

How To Add Advanced Features Into A Client Side Search Form?

Jan 28, 2004

I'm trying to add a search feature into a literature review i'm converting to HTML for work. This is to be burnt to a cd and given to a client. At present I can only do a simple keyword search through the entire collection text (i'm NO programmer i'm afraid ), I need to add boolean features to this so that ppl can search for "word1 AND word2" sort of thing. Can anyone give me some pointers as to how I might accomplish this?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved