Note that there are some explanatory texts on larger screens.

plurals
  1. POJSON is not declared error in IE8
    primarykey
    data
    text
    <p>I have problem figuring out how to get rid of the series of errors I receive while running my application in IE8 and earlier. First of the errors shows in jquery.mi.js script: "JSON not declared". Obviously since JSON is not declared in the first place, then other errors like "object not specified" or "$ not declared" pop up. IE9 and 10 run the application flawlessly as well as all other browsers.</p> <p>The jquery.min.js script is loaded first as you can see in the following index.html header:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head id="NAPSitesHead"&gt; &lt;title&gt;Site Search&lt;/title&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="http://maps.googleapis.com/maps/api/js?libraries=geometry&amp;sensor=false" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="js/geo.js?id=1" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="js/index.js" type="text/javascript"&gt;&lt;/script&gt; &lt;link rel="stylesheet" type="text/css" media="screen,print" href="CSS/CommonSS.css"/&gt; &lt;/head&gt; </code></pre> <p>I would like to note that I saw many posts and discussions about similar problems but none of their solutions/suggestions seem to apply in my case.</p> <p>Thanks a lot for your ideas, Jacek</p> <p>Edited after changing jquery version to 1.10.1:</p> <p>Here is the ajax call that causes error now:</p> <pre><code>function KenMapLoad(KenID, AddrPart, SearchTxt, RBSearchType) { $.ajax({ type: "POST", url: "WebSVC.asmx/KenMapSites", data: "{KenID:'" + KenID + "', AddrPart:'" + AddrPart + "', SearchTxt:'" + SearchTxt + "', RBSearchType:'" + RBSearchType + "'}", contentType: "application/json; charset=utf-8", dataType: "json", success: function (data) { var locs = []; //line below causes "JSON not defined" error var objSites = JSON.parse(data.d); $.each(objSites, function (i, item) { locs.push([item.LocNmKanji, item.Address, item.TelNo, item.MachServ, item.Access, item.Latitude, item.Longitude]); }); //Puting extracted locations on the map: PutMarkersOnMap(locs, 0); }, error: function (error) { alert('県リスト読み込みエラー: ' + error.status); } }); </code></pre> <p>};</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.
    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