Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery $get error message: Not Found
    primarykey
    data
    text
    <p>I am running the following jQuery <code>.get()</code> call from an HTML page:</p> <pre><code>&lt;div id="fw_results"&gt;Results&lt;/div&gt; &lt;script type="text/javascript"&gt; $(document).ready(function() { $.get({ url: "http://fw.localhost:8082/sites/MyPhp/fw.php" }) .success(function(result) { $("#fw_results").text(result); }) .error(function(jqXHR, textStatus, errorThrown) { $("#fw_results").text("Error: " + textStatus + " " + errorThrown); }); }); &lt;/script&gt; </code></pre> <p>and the <code>fw_result div</code> content is populated with:</p> <pre><code>Error: error Not Found </code></pre> <p>When I call fw.localhost:8082/sites/MyPhp/fw.php from my browser, I get the proper result.</p> <p>How come I get a "Not Found" error message? Is there any way to find more information about the cause of this issue?</p> <p><strong>Update</strong></p> <p>From Firebug, I see a call to <strong>/sites/MyJS/src/main/webapp/html/%5Bobject%20Object%5D</strong> that fails. I don't know what <code>%5Bobject%20Object%5D</code> could be. I am trying to find out.</p> <p><strong>Update II</strong></p> <p>For the records, although I though I had gotten rid of the issue, because I moved the code in a Drupal content type instance (yes, this issue happens within a Drupal installation), in fact it appeared again. In the end, it has nothing to do with Drupal.</p> <p>One just needs to change this:</p> <pre><code>$.get({ url: "http://fw.localhost:8082/sites/MyPhp/fw.php" }) </code></pre> <p>into this:</p> <pre><code>$.get("http://fw.localhost:8082/sites/MyPhp/fw.php") </code></pre> <p>to get rid of this error.</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