Note that there are some explanatory texts on larger screens.

plurals
  1. POCross Domain issue(Working in IE not in other browser)
    text
    copied!<p>I am fetching data from a URL using an AJAX call. It is giving a json object to me.</p> <p>When I run the application, the page is working fine in IE with a conformation that the page is accessing information that is not under its control. </p> <blockquote> <p>This poses a security risk. Do you want to continue?</p> </blockquote> <p>But that is not working in other browsers like Firefox, Chrome, Safari, etc.</p> <p>i don't know what is the problem. Please explain to me why it is occurring and how to solve the issue?</p> <p><strong>My Code:</strong></p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Search Engine&lt;/title&gt; &lt;script src="JS/jquery-1.4.2.min.js"&gt;&lt;/script&gt; &lt;script&gt; $(document).ready(function () { $.support.cors = true; // create a script tag element var script = document.createElement("script"); // set the attribute, using the URL to pass data via query parameters script.setAttribute("src", "http://192.168.13.111:7090/?uname=bhagirathip&amp;wt=json&amp;fl=*,score"); script.setAttribute("type", "text/javascript"); // add the script tag to the document head, forcing an HTTP request document.getElementsByTagName("head")[0].appendChild(script); }); function Search() { function callbackJsonHandler(data) { alert(data); // This is the JSON data } } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="form"&gt; &lt;div style="text-align: center"&gt; &lt;input type="search" id="searchInput" autofocus /&gt; &lt;input type="button" id="btnSearch" onclick="Search()" value="Search" /&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </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