Before you send the request, you call something like this: Window.translateCallback = myClosure(arg1, arg2, arg3...);
Then you use translateCallback as your callback parameter. Jg On Dec 7, 2011 12:28 AM, "riz4uall" <[email protected]> wrote: > then how am i suppose to call the function in following querystring??? > where to pass parameters from?? > > > var source = 'https://www.googleapis.com/language/translate/v2?key=' + > GoogleTranslationApiKey + '&source=' + primaryLang + '&target=' + > secondaryLang + '&callback=createClosure(arg1, arg2)&q=' + > escape(document.getElementById(lblId).innerHTML) > > like this?? > > it gives undefined parameters > > -- > 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 > -- 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
