Tip – Serving .json File on Windows (IIS, IIS Express)

So what is wrong with the simple getJSON call? Why doesn't it work?<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script type="text/javascript">   $(document).ready(function(){     $.getJSON('data.json',function(result){       alert("success");     });   }); It works fine in Firefox 11 but not in IE and Chrome. By default, IIS6 does not serve .json (no wildcard MIME type). So... Continue Reading →

Powered by WordPress.com.

Up ↑