Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You should use dataType on the ajax call</p> <pre><code>function ajax_update(path) $.ajax { url: path, dataType: "html", success: function(result) { $('#sizeAddHolder').html(result); } return false; } </code></pre> <p>From <a href="http://api.jquery.com/jQuery.ajax/" rel="nofollow noreferrer">jQuery docs</a>:</p> <p>dataType Default: Intelligent Guess (xml, json, script, or html)</p> <p>The type of data that you're expecting back from the server. If none is specified, jQuery will intelligently try to get the results, based on the MIME type of the response (an XML MIME type will yield XML, in 1.4 JSON will yield a JavaScript object, in 1.4 script will execute the script, and anything else will be returned as a string). The available types (and the result passed as the first argument to your success callback) are:</p> <pre><code>* "xml": Returns a XML document that can be processed via jQuery. * "html": Returns HTML as plain text; included script tags are evaluated when inserted in the DOM. * "script": Evaluates the response as JavaScript and returns it as plain text. Disables caching unless option "cache" is used. Note: This will turn POSTs into GETs for remote-domain requests. * "json": Evaluates the response as JSON and returns a JavaScript object. In jQuery 1.4 the JSON data is parsed in a strict manner; any malformed JSON is rejected and a parse error is thrown. (See json.org for more information on proper JSON formatting.) * "jsonp": Loads in a JSON block using JSONP. Will add an extra "?callback=?" to the end of your URL to specify the callback. * "text": A plain text string. </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