Welcome Guest, Not a member yet? Register   Sign In
Any chrome extension developer at here help me to find out why this warning is coming
#1

[eluser]mi6crazyheart[/eluser]
Is there any chrome extension developer at here help me to find out why this chrome console warning is coming...

Chrome console warning : "Resource interpreted as script but transferred with MIME type application/json"

My chrome extension popup.html 's code is like this :

Code:
$.getJSON("http://localhost/CI/index.php/api/example/users/format/json?jsoncallback=?",
    {format: "json"},function(data){
    for (var i in data)
    {
            //alert(data[i].ThreadID);
            [removed](data[i].ThreadAuthorFirstName + " : " + data[i].ThreadTitle );
            [removed]("<br />");
    }
});


The data which the extension getting is this..

Code:
[{"ThreadID":"213","ThreadTitle":"Christian Heilmann's talk for the why of HTML5 for games development","ThreadAuthorFirstName":"Suresh kumar"},{"ThreadID":"208","ThreadTitle":"The PHP Switch Statement","ThreadAuthorFirstName":"Suresh kumar"},{"ThreadID":"212","ThreadTitle":"DaVinci prototype on Xbox Kinect","ThreadAuthorFirstName":"Suresh kumar"}]

I'm building this extension for a codeigniter application where i'm using phil sturgeon codeigniter-restserver ( http://goo.gl/YOQFq )




Theme © iAndrew 2016 - Forum software by © MyBB