Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>use URL encoding. a new line is represented as <code>%0A</code></p> <p><a href="http://www.javascripter.net/faq/escape.htm" rel="nofollow noreferrer">http://www.javascripter.net/faq/escape.htm</a> says you can use the javascript function <code>escape</code></p> <pre><code>function checkPlayState(checkStatus) { var Player = document.getElementById("NSPlay"); if (Player.playState == 0 || Player.playState == 1) { // 0 vs 8 if (checkStatus == true) { var tex_t = escape(document.getElementById("ctl00_ContentPlaceHolder1_TextArea1").innerHTML); // The following javascript function takes the URL of the target page and // a name / value paire and POSTs the data to the supplied URL by dynamically // creating a form and then submitting it... // but I am loosing line-feeds/carage-returns in the transfer of the text var fil_e = "Speach.aspx" // target url post_to(fil_e, tex_t); function post_to (file, text) { var myForm = document.createElement("form"); myForm.action = file; myForm.method = "post"; var myInput = document.createElement("input"); myInput.setAttribute("name", "key"); myInput.setAttribute("value", tex_t); // squares show in the "Text Visualizer" when yellow is here myForm.appendChild(myInput); // squares have gone in the "Text Visualizer" when we are here but show in the value field of watch window??? document.body.appendChild(myForm); myForm.submit(); document.body.removeChild(myForm); } return; } else { window.setTimeout("checkPlayState(true)", 500); } } else { window.setTimeout("checkPlayState(false)", 500); } } </code></pre> <p>Then for your aspx file use:</p> <pre><code>Dim tex_t As Object tex_t = Request.Form("key") If tex_t "" Then ' Here while debugging the squares are gone?!? TextArea1.InnerText = Server.UrlDecode(tex_t) ' it is the same textarea too Else End If </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload