È un po' "tirato per i capelli", ma dovrebbe funzionare.
in rosso le modifiche
in verde le parti da togliere
Speriamo!codice:<html> <head> <title id=titletext>Call scriviCallee 3 </title> <META Http-Equiv="Cache-Control" Content="no-cache"> <META Http-Equiv="Pragma" Content="no-cache"> <META Http-Equiv="Expires" Content="0"> <link href="CSS.css" type="text/css" rel="stylesheet" > </head> <body onload="scriviCallee()"> <script language="JavaScript" type="text/javascript"> <!-- var parentwin = external.menuArguments; var doc = parentwin.document; var sel = doc.selection; var rng = sel.createRange(); var str = new String(rng.text); alert(str); /*alert di debug ---> funziona!*/ function scriviCallee() { document.getElementById("chiamato").value = str; document.getElementById("frmChiama").submit(); } //--> </script> <FORM method="Post" name="Chiama" id="frmChiama" action="http://10.45.8.195/click_to_dial/ctd.php" target="_blank" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" > <INPUT type="hidden" id="chiamato" name="callee" value="" > <INPUT type="hidden" name="caller" value="251"> <INPUT type="hidden" name="psw" value="251"> <INPUT type="hidden" name="lang" value="it"> <!-- commentata, non serve piu' il pulsante <input type="image" src="Tel_Uff.gif" width="25" height="25" title="CHIAMA ORA"> fine commento --> </FORM> </body> </html>
HTH
Zappa

Rispondi quotando