I am using translate API v2. using javascript.

my call is like this

var source = 'https://www.googleapis.com/language/translate/v2?key=' +
GoogleTranslationApiKey + '&source=' + primaryLang + '&target=' +
secondaryLang + '&callback=translateText&q=' +
escape(document.getElementById(lblId).innerHTML)

and my call back function is

function translateText(response)
 {
// my code

//

}

how can i pass additional parameter to function
translateText(response, counter) ????

is there any way to do like below???
var source = 'https://www.googleapis.com/language/translate/v2?key=' +
GoogleTranslationApiKey + '&source=' + primaryLang + '&target=' +
secondaryLang + '&callback=translateText(response,counter)&q=' +
escape(document.getElementById(lblId).innerHTML)

-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
To view this message on the web, visit
http://groups.google.com/group/google-ajax-search-api?hl=en_US
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Reply via email to