allora ho studiato un po',
e ho sono riuscito a spedire il testo alla pagina asp che lo stampa sul db.
ora ho due problemi.
codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
<meta name="keywords" content="traduzione diretta google" />
<meta name="description" content="Script Asp Javascript per traduzione in diretta" />
<script type="text/javascript" src="http://www.google.com/jsapi" charset="utf-8">
</script>
<script type="text/javascript" src=" jquery.js"></script>
<script type="text/javascript">
google.load("language", "1");
function initialize() {
var text = '<%=testo1%>';
google.language.detect(text, function(result) {
if (!result.error && result.language) {
google.language.translate(text, result.language, "<%=linguaggio%>",
function(result) {
var translated = document.getElementById("traduzione_en");
if (result.translation) {
translated.innerHTML = ' '+result.translation+'';
var url = "postdata.asp";
var dati = "tradu="+result.translation;
$.ajax({url:url, data:dati, type: 'post'});
}
});
}
});
}
primo problema, mi si ferma il tutto alla accento " ' "
e come secondo problema che mi stampa tutto senza spazi.
a monitor lo vedo tutto corretto, ma nel db è tutto attaccato.
mi potete aiutare con un piccolo suggerimento, grazie
Mauro