Jose -- If you want to do a simple AJAX translate request, please read this sample: http://code.google.com/apis/ajax/playground/#translate
If you want to be able to translate more than 2,000 characters in a single request then you will have to do an AJAX POST request to your own serverside proxy script which will then create the request to our servers and return the response to your AJAX request. This is because: - You are restricted to 2,000 character GET requests by some browsers - You can do an AJAX POST request, but you cannot create a cross-domain request, e.g. an AJAX POST request from your server to our server If you choose to create a serverside proxy, your AJAX request can access the text in the JSON object returned by the proxy by calling eval(response). responseData.translatedText. -Ben On Mon, Mar 2, 2009 at 10:14 AM, Jose Mora Fallas <[email protected]>wrote: > Ok, previously Jeremy Jeerdes wrote, that for use all the google > translation capacities i have to send the translation object using a post > method, the matter is that if i do that, i cant use the ajax advantages, and > y have to construct my own method, i have the problem using the post method, > because it returns a Json object, and i need a functión for extract the > needed text only: Ciao mondo. > > I can do a function for refresh a div using ajax, but i dont know how to > extract only the needed text of the Json object returned by google. > > 2009/3/2 Ben Lisbakken <[email protected]> > >> >> Artemi -- >> >> I am confused what you are asking for. There is only one result for a >> translation request. Can you explain your question again? >> >> Thanks, >> Ben >> >> On Mar 2, 9:34 am, Artemi <[email protected]> wrote: >> > Somebody have or knows how to process the next result with php >> > >> > {"responseData": { >> > "translatedText":"Ciao mondo" >> > }, >> > "responseDetails": null, "responseStatus": 200} >> >> > > > -- > _________________________ > Jose Manuel Mora Fallas > www.acto.go.cr > > > > > --~--~---------~--~----~------------~-------~--~----~ 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] For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API?hl=en -~----------~----~----~----~------~----~------~--~---
