Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Just in-case something inside your xmlhttp object creation is not setup correctly or you have not waited for the correct status, have you looked at some simple xamples like from <a href="http://www.xul.fr/en-xml-ajax.html" rel="nofollow noreferrer">XUL.fr</a> or <a href="http://www.w3schools.com/Ajax/Default.Asp" rel="nofollow noreferrer">W3 Shools</a> or <a href="http://www.yourhtmlsource.com/javascript/ajax.html" rel="nofollow noreferrer">Your HTML Source</a>? </p> <p>Below is a simple example. Notice the inline function for the onreadystatechange callback and the check on readystate and status. I believe your issue may reside in you note doing these checks, but without your code I could be wrong.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;script&gt; function submitForm() { var xhr; try { xhr = new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { try { xhr = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e2) { try { xhr = new XMLHttpRequest(); } catch (e3) { xhr = false; } } } xhr.onreadystatechange = function() { if(xhr.readyState == 4) { if(xhr.status == 200) document.ajax.dyn="Received:" + xhr.responseText; else document.ajax.dyn="Error code " + xhr.status; } }; xhr.open(GET, "data.txt", true); xhr.send(null); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;FORM method="POST" name="ajax" action=""&gt; &lt;INPUT type="BUTTON" value="Submit" ONCLICK="submitForm()"&gt; &lt;INPUT type="text" name="dyn" value=""&gt; &lt;/FORM&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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