Thanks for all help. Let me make my question more clear:
1. I have a jsp page. display a article in foreign language.
2. I call GOOGLE translation API, it is a ajax function and get the
translated results from this ajax call. All these are in
javascript.
3. I want to display the translated results in another window.(can be
a new tab or a new window)
How can I send the result data into the new page?
Otherwise, I think something like these:
when i hit the TRANSLATE link, the body of the article is sent to a
jsp page on server, then server receive the original
text, then send the translation request. My question is: if the
content of the article is not in a form, (e.g. they are in a <div>...</
div>,) can i POST the data to the server?
Thank you very much for all your help.
Dan
Le 12/3/08 11:08 PM, Dan a écrit :
why using Ajax for that ?
<form target="_blank" ...
if really and to try, perhaps something like :
function response () {
if(typeof truc == 'undenfined' || truc.closed)
SAM, what are we going to do with you?
truc = window.open();
truc.body.appendChild = XHR.responseText;
truc.focus();
8 million ways to die.
not tested (popups are dead anyway)
Yes and yes. But why post something like this? See the FAQ
concerning popup windows and enough with the fantasy code.
[snip]