While the Language API supports original strings of up to 5000
characters, the GET method only allows for urls of up to 2000
characters, including the address and all the rest of the query
string. This is a hard limit set in MSIE, but also on Google's
servers. To utilize the full 5000-character string limit, then, you
must use the POST method with a server-side script. This means that,
if you're wanting to translate text on a page dynamically via
Javascript, you'll need to write your own JS which will utilize
XMLHttpRequest to submit and retrieve information from your server-
side script, which will act as a proxy, and then eval it. Also, it is
important to remember that this limit also includes characters that
must be uri escaped. So, for instance, a single space (" ") becomes
%20, an ampersand ("&") %26, etc. This means that these characters
count as 3.
Jeremy R. Geerdes
Effective website design & development
Des Moines, IA
For more information or a project quote:
http://jgeerdes.home.mchsi.com
http://jgeerdes.blogspot.com
http://jgeerdes.wordpress.com
jgee...@mchsi.com
Unless otherwise noted, any price quotes contained within this
communication are given in US dollars.
If you're in the Des Moines, IA, area, check out Debra Heights
Wesleyan Church!
And check out my blog, Adventures in Web Development, at
http://jgeerdes.blogspot.com
!