Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First of all you uses <a href="http://api.jquery.com/jQuery.ajax/" rel="nofollow noreferrer">$.ajax</a> which don't know the <code>dataType: 'xmlstring'</code>. You means <code>dataType: 'xml'</code>.</p> <p>Second You misunderstood the <code>datatype: 'xmlstring'</code>. Instead of the usage of separate <code>$.ajax</code> call you can use</p> <pre><code>datatype: 'xml', url: 'register.php', postData: {uID: uID}, </code></pre> <p>options of jqGrid. You can consider to implement <code>uID</code> property of the <code>postData</code> as method (see <a href="https://stackoverflow.com/a/2928819/315935">here</a> for details). The body of <code>setInterval</code> can be reduced to the call of <code>$("#tasks").trigger('reloadGrid', [{current: true}]);</code> (see <a href="https://stackoverflow.com/a/5297156/315935">here</a> and <a href="https://stackoverflow.com/a/3808014/315935">here</a>).</p> <p>If you need don't load the grid body at the first and do loading only inside of <code>setInterval</code> you can set <code>datatype: 'local'</code> and change <code>datatype</code> to <code>'xml'</code> with respect of <code>setGridParam</code> like you do already.</p> <p>Moreover I don't use PHP myself, but nevertheless I would recommend you to use <code>DOMDocument</code> from <a href="http://www.php.net/manual/en/book.dom.php" rel="nofollow noreferrer">PHP DOM</a> (see for example <a href="http://www.tonymarston.net/php-mysql/dom.html" rel="nofollow noreferrer">here</a> or <a href="http://www.ibm.com/developerworks/library/os-xmldomphp/" rel="nofollow noreferrer">here</a> for details) instead of writing the XML manually. Direct construction of XML text can produce many errors. For example you can't place characters like <code>&lt;</code> directly as the content of XML elements without its encoding. At least <a href="http://www.w3schools.com/xml/xml_cdata.asp" rel="nofollow noreferrer">CDATA</a> sections should be used.</p>
    singulars
    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.
 

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