Google Translator API And Search Query?

Nov 21, 2010

Imagine the following input:


<form action="search.php" method="get">
Search: <input type="text" name="search" />
<input type="hidden" name="searchOriginal" value="search" />


What I would like to do is: Use google AJAX API to see if the search string (search) is different of english. I would like to translate it and send it like that to search.php. So it would appear already translated like this in the URL: search.php?search=translatedString. And search.php would also see it translated.

View 6 Replies


Does Google Transliteration (not Translator) Support German, Swedish Language

Apr 28, 2011

I found Google Transliteration, a very good tool to reproduce the sounds of a sentence in a different language.



It supports approx. 22 languages. how does make it to support German and Swedish too. I cant see these languages there.

View 1 Replies View Related

Passing Search Queries To Google Custom Search?

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="" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'en'});


View 3 Replies View Related

How To Extract The Entire URL Or Just The Search Query

Jan 7, 2011

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

View 4 Replies View Related

Filling Search Query Box With Text That Disappears When Clicked On?

Jun 22, 2010

I have a basic search box that I want filled with light gray text that says <enter search query> or similar, and I want it to disappear when the box is clicked on. I also want the '<enter search query>' to reappear when the page is reloaded.

View 3 Replies View Related

Creating A Custom Google Search

Feb 7, 2009

I'm trying to create a CUSTOM google search form for my website but i'm running into problems. If you go to my website [url] and at the top it says "Download Free Music" What should happen is you type the song and it creates a custom google search once you hit "super google search". It does not search and goes to a blogger page

A extact working copy is on [url] which i'm trying to integrate on my site [url]

The code for the custom google search intitle:"index.of" (mp4|mp3|avi) SONG NAME GOES HERE -asp -htm -html -cf -jsp

View 2 Replies View Related

How Do Google And Bing Do Their Dropdown Search

Apr 5, 2011

How do Google and Bing allow you to use the keyboard up and down keys to jump to the suggested search results. I know how to do the Ajax search part, I just can't figure out how to get the search suggestions selected, and fire their HREF tag upon clicking the Enter button. Basically I can do all this without any keyboard navigation but I need to hook in the keyboard like they do.Is there a simple example somewhere? Google and Bing's are super complex and I can't snoop how they pull it off.

View 3 Replies View Related

Search List As Google From Mysql?

Sep 23, 2010

I want to make search box like google. when typing in the text box it will show search list. the list must be from mysql query search. How can I do that.

View 1 Replies View Related

Google News Api Search - Add Image{}?

Dec 16, 2010

I tried to make a easy google news search api. I know google news api search can show max 8 items per page, and 8 pages(total 64 items).

1.How to add `image{}`(I want to show the news image), I read the document in google official website, but not understand.

2.Can google news api search set a start page at page 3?(the default page is always show page 1)

3.Is google api search have a day limit? I saw the old version Google SOAP Search API just allow custom use 1000 times per day.


View 6 Replies View Related

Google Internal Site Search Modifications

Mar 5, 2009

I am using the following script:
<script type="text/javascript">
// Google Internal Site Search script- By [URL]
// For this and over 400+ free scripts, visit JavaScript Kit- [URL]
// This notice must stay intact for use
//Enter domain of site to search.
var domainroot="[URL]"

function Gsitesearch(curobj){
curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
<form action="[URL]" method="get" onSubmit="Gsitesearch(this)">

<p>Search JavaScript Kit:<br />
<input name="q" type="hidden" />
<input name="qfront" type="text" style="width: 180px" /> <input type="submit" value="Search" /></p>
<p style="font: normal 11px Arial">This free script provided by<br />
<a href="[URL]">JavaScript Kit</a></p>

I want to modify the onSubmit event to also include this code:'', 'foo', 'width=450,height=300,status=yes,resizable=yes,scrollbars=yes')
But I am having difficulties. I would like for the search results page to be displayed in the new window.

View 2 Replies View Related

Ajax :: Google Search Api ( Youtube VideoBar)

Aug 20, 2008

I want to put youtube video bar in my website... and i already found the way to do it. Using google ajax search api. Google already provide the wizard to generate the code. [URL] The problem is, by default it shows only 4 videos for horizontal view. I am really having trouble to increase the video number.


View 3 Replies View Related

Google Custom Search Results Opens In New Tab

Aug 31, 2011

I am using google custom search & getting result on the same page.I am trying to show search result on the new tab.

View 1 Replies View Related

One Highlight A Table Cell As A Result Of Google Search?

Mar 19, 2009

is it possible to highlight a TABLE-CELL instead of the searched word within that cell as a result of a google search.

View 6 Replies View Related

Display Google Search Results Inside Web Page

Jul 17, 2011

I found the following 'Cut & Paste Google Internal Site Search script' in the library - it works well and provides an easy solution for adding a search function to a website - code below

<script type="text/javascript">
// Google Internal Site Search script- By (
// For this and over 400+ free scripts, visit JavaScript Kit-
// This notice must stay intact for use
//Enter domain of site to search.
var domainroot=""

View 1 Replies View Related

Adjust Width Of IFrame For Google Search Results?

Nov 27, 2009

try a search on my webpage (search box is located at top of sidebar on the left): [URL]

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";
var googleSearchFormName = "cse-search-box";


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

Google Maps With Integrated Search Function For Postcodes?

Oct 25, 2011

I need to embed google maps to my website with a search function for postcodes to see if franchise or lessons in their areas are available. ?any thought where I could go. Iv had a look at some google websites and bout this but nothing clear as to how to add coding what types files etc. im sure most of it is in javascript

View 3 Replies View Related

Google Voice Search And Automatic Recording Input

Mar 28, 2011

I'm using google voice search on a simple form:


How to activate the voice search, that is generally activated by clicking on the little microphone near the textbox, without clicking it?

I want it to start recording the voice after the user starts talking, or alternatively, after a tot # of seconds..

I did not find anything on the API: [url]

View 1 Replies View Related

Embed Google Books Results For Search Term In Website?

May 10, 2011

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.

View 2 Replies View Related

Automatically Submitting A Url To A Translator

Mar 31, 2009

I'm a novice in javascript programming. I need to create a program that automatically sends websites to a free translating site (the part where it asks you to input a url for website translation), and automatically redirect the user to the translated site. I basically just need to know how to send the url to that box, and submit the result, and redirect the user there.

View 2 Replies View Related

Number To Word Translator

Aug 22, 2002

Don't know if there is one of these online, so I made me own. Simple function that outputs a number as words. First argument is the number, second argument is flag (default = false) that controls whether output is cardinal or ordinal - as in "one" or "first".

Goodness knows if I have the grammer correct, especially when the numbers get big. Enjoy!


1) Doesn't work with WebTV or below NS 4. Changing the large literal array into a common array should fix that, but I didn't bother.

2) Converts number into an integer before wording number. So, no "one point forty-five" stuff. This function is a good start for anyone who wants to do that though.

3) Always returns, "zero" for 0. Couldn't find cardinal equivalent to "zero"... zeroeth?

Num2Word, ouputs written number in human language format
Nbr: num, the number to be worded. This number is converted into an integer.
Crd: bol, flags whether output is cardinal or ordinal number. Cardinal is used when describing the order of items, like "first" or "second" place.
function Num2Word(num,fmt) {
//_ arguments
num = Math.round(num).toString(); // round value
if (num == 0) return 'zero' // if number given is 0, return and exit
//_ locals
// word numbers
var wnums = [['hundred','thousand','million','billion','trillion','zillion'],['one','first','ten','','th'],['two','second','twen',0,0],['three','third','thir',0,0],['four','fourth',0,0,0],['five','fifth','fif',0,0],['six','sixth',0,0,0],['seven','seventh',0,0,0],['eight','eighth','eigh',0,0],['nine','ninth',0,0,0],['ten',],['eleven',],['twelve','twelfth'],['thirteen',],['fourteen',],['fifteen',],['sixteen',],['seventeen',],['eighteen',],['nineteen',]];
// digits outside triplets
var dot = (num.length % 3) ? num.length % 3 : 3;
// number of triplets in number
var sets = Math.ceil(num.length/3);
// result string, word as number
var rslt = ''
//_ convert every three digits
for (var i = 0; i < sets; i++) { // for each set of triplets
// capture set of numbers up to three digits
var subt = num.substring((!i) ? 0 : dot + (i - 1) * 3,(!i) ? dot : dot + i * 3);
if (subt != 0) { // if value of set is not 0...
var hdec = (subt.length > 2) ? subt.charAt(0) : 0; // get hundreds digit
var ddec = subt.substring(Math.max(subt.length - 2,0),subt.length); // get double digits
var odec = subt.charAt(subt.length - 1); // get one's digit
// hundreds digit
if (hdec != 0) rslt += ' ' + wnums[hdec][0] + '-hundred ' + ((fmt && ddec == 0) ? 'th' : '');
// add double digit
if (ddec < 20 && 9 < ddec) { // if less than 20...
// add double digit word
rslt += ' ' + ((fmt) ? ((wnums[ddec][1]) ? wnums[ddec][1] : wnums[ddec][0] + 'th') : wnums[ddec][0]);
} else { // otherwise, add words for each digit...
// add "and" for last set without a tens digits
if ((0 < hdec || 1 < sets) && i + 1 == sets && 0 < ddec && ddec < 10) rslt += 'and '
// tens digit
if (19 < ddec) rslt += wnums[ddec.charAt(0)][(wnums[ddec.charAt(0)][2]) ? 2 : 0] + ((i + 1 == sets && odec == 0 && fmt) ? 'tieth' : 'ty') + ((0 < odec) ? '-' : ' ');
// one's digit
if (0 < odec) rslt += wnums[odec][(i + 1 == sets && fmt) ? 1 : 0];
// add place for set
if (i + 1 < sets) rslt += ' ' + wnums[0][sets - i - 1] + ' ' // if not last set, add place
} else if (i + 1 == sets && fmt) { // otherwise, if this set is zero, is the last set of the loop, and the format (fmt) is cardinal
rslt += 'th' // add cardinal "th"
//_ return result
return rslt

Test the result of various valies like so

for (var i = 0; i < 50; i++) {
var x = Math.round(Math.random() * 5000000);
document.write(x,' -> ' + Num2Word(x).bold(),'<BR>');

Use this function towards whatever means you deem necessary. Pease credit me, Bemi Faison, if you use this script.

View 3 Replies View Related

Find Code For Translator?

Jun 6, 2009

I am in the process of creating a website and I want to include a translator and I do not know where to find the code for such a thing.

View 2 Replies View Related

JQuery :: Implementing A "google Custom Search" Feature In A Code

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

Cannot Search "variable Inside A Document." On Google With Success?

Apr 27, 2010

I was having something like this:

Code JavaScript:
function activaInput()


View 9 Replies View Related

Tracking User Activity - Track Whether User Is Typing In The Browser's Address Bar Or Aside Google Search Box

Oct 14, 2011

is it possible to track whether user is typing in the browser's address bar or aside google search box ( which appears in most of the browsers besides address bar)? if yes, I would like to know HOW? references are welcome.

View 4 Replies View Related

Create Google Custom Search TextBox That Has Background Image And Image Disappears On Onmouseclick

Jun 10, 2010

I want to create Google Custom Search TextBox that has background image and image disappears on onmouseclick and appears back on onmouseout.

View 1 Replies View Related

Make A Translator Like Pig Latin But Slightly Different?

Feb 4, 2011

I have developed my own fake language like pig latin but ever so slightly different, I want to make a translator for it as there are so many for pig latin,english-my language:

1: put the first letter at the end (hello becomes elloh)
2: put an 'a' 2 letters in (elloh becomes elaloh)

obviously if the inputted word had a capital letter at the begining, then the new first letter should be in capitals, and the translator should be able to translate whole sentences not just word by word,I have downloaded countless javascript/html files for pig latin translating because obviously the first step for translating to the 2 languages is the same and ive managed to stop it adding the 'ay' or 'way' to the end of the word as it is in pig latin bu i dont think ive done it very efficiently?

View 1 Replies View Related

Copyrights 2005-15, All rights reserved