Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to put a semi-colon after the last } just before the ajax.send() call.</p> <p>This website is your best friend if you write JavaScript: <a href="http://closure-compiler.appspot.com/home" rel="nofollow">http://closure-compiler.appspot.com/home</a></p> <pre><code>function postToStatus(action, type, user, ta) { var data = _(ta).value; if (data == "") { alert("Type something first weenis"); return false; } _("statusBtn").disabled = true; var ajax = ajaxObj("POST", "php_parsers/qp_system.php"); ajax.onreadystatechange = function() { if (ajaxReturn(ajax) == true) { var datArray = ajax.responseText.split("|"); if (datArray[0] == "post_ok") { var sid = datArray[1]; data = data.replace(/&lt;/g, "&amp;lt;").replace(/&gt;/g, "&amp;gt;").replace(/\n/g, " &gt;&lt;br /&gt;").replace(/\r/g, "&lt;br /&gt;"); var currentHTML = _("statusarea").innerHTML; _("statusarea").innerHTML = '&lt;div id="status_' + sid + 'class="status_boxes"&gt;&lt;div&gt;&lt;b&gt;Posted by you just now:&lt;/b&gt;&lt;span &gt;id="sdb_' + sid + '"&gt;&lt;a href="#" onclick="return false" &gt;onmousedown="deleteStatus("' + sid + "','status_" + sid + '\');" title="DELETE THIS STATUS AND ITS REPLIES"&gt;delete status&lt;/a&gt; &gt;&lt;/span&gt;&lt;br /&gt;' + data + '&lt;/div&gt;&lt;/div&gt;"' + currentHTML; _("statusBtn").disabled = false; _(ta).value = ""; } else { alert(ajax.responseText); } } }; ajax.send("action=" + action + "&amp;type=" + type + "&amp;user=" + user + "&amp;data=" + data); } ; </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.
    3. VO
      singulars
      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