Results 1 to 3 of 3
Thread: Java Search Query Question
- 12-01-2009, 10:20 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 5
- Rep Power
- 0
Java Search Query Question
I have noooo idea if I am even posting this in the correct area, let alone the correct site. If not I apologize and maybe someone could direct me elsewhere.
I am trying to add a custom search into my site.
jeffknowsloans.xom Jeff Knows Loans - M&M Mortgage
you can see it about the middle of the page.
I am using the following script to do so.
here is the problem i am running into.Java Code:<script type="text/javascript"> function dosearch() { var sf=document.searchform; var submitto = sf.sengines.options[sf.sengines.selectedIndex].value + escape(sf.searchterms.value); window.location.href = submitto; return false; } </script> <form name="searchform" onSubmit="return dosearch();"> Select County <select name="sengines"> <option value="hxxp://www2.co.washington.mn.us/opip/mod/addresssrch/result.asp?housenum=&street=" selected>Washington</option> <option value="hxxp://rrinfo.co.ramsey.mn.us/public/characteristic/PropertySearchResults.aspx?pin=&Nbr=&Street=&pg=1" selected>Ramsey</option> </select> Street Address: <input type="text" name="searchterms"> <input type="submit" name="SearchSubmit" value="Search"> </form>
I dont know how to ignore or add certain parts of the search when it sends. for example. take a look at
When i try to do a search under this drop down selection it doesnt work. because it needs the &pg=1 to be added to the users request.Java Code:<option value="hxxp://rrinfo.co.ramsey.mn.us/public/characteristic/PropertySearchResults.aspx?pin=&Nbr=&Street=&pg=1" selected>Ramsey</option>
Meaning if I set it to
they type in their street name and the street name inputs into the search query but it wont fully work because it doesnt add the &pg=1 after it all.Java Code:hxxp://rrinfo.co.ramsey.mn.us/public/characteristic/PropertySearchResults.aspx?pin=&Nbr=&Street=
how in the world do I get it to add things like that?
another example
taking a look at
this search function should technically beJava Code:<option value="hxxp://www2.co.washington.mn.us/opip/mod/addresssrch/result.asp?housenum=&street=" selected>Washington</option>
however since i dont know how to add certain functions to the search i have to skip the housenum option. that means my customers cant search by street number. I want them to be able to type in their house number and their street address and it will change to what each seperate (outside) search engine needs.Java Code:<option value="hxxp://www2.co.washington.mn.us/opip/mod/addresssrch/result.asp?" selected>Washington</option>
Does this make any sense at all?
- 12-01-2009, 11:23 PM #2
Senior Member
- Join Date
- Sep 2009
- Location
- Sweden/Borås
- Posts
- 107
- Rep Power
- 0
Dont think this is the site for you. Java and JavaScript aint the same language. Hope you find an answer to your problem.
Regards / ocean
- 12-01-2009, 11:37 PM #3
Member
- Join Date
- Nov 2009
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
Not able to highlight the search key work in wild card search
By annappa in forum LuceneReplies: 0Last Post: 10-29-2009, 09:28 AM -
Help with query (new to java!)
By gpittingale in forum New To JavaReplies: 3Last Post: 02-15-2009, 09:14 AM -
Newbie search array question
By CirKuT in forum New To JavaReplies: 19Last Post: 09-14-2008, 06:26 AM -
make search function ike eclipse search in window->preference
By i4ba1 in forum Advanced JavaReplies: 5Last Post: 08-26-2008, 03:43 PM -
oracle query with date question
By orchid in forum JDBCReplies: 1Last Post: 05-09-2007, 12:10 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks