Welcome Guest, Not a member yet? Register   Sign In
how to deal with chrome console warning "Resource interpreted as script but transferred with MIME type text/html" in cod
#1

[eluser]mi6crazyheart[/eluser]
Hey Guys, i dragged to a simple problem may be but don't know how to deal with it.

I'm on my way to build a chrome extension. The piece of jquery which i use in chrome extension is like this..

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

My controller function is..

Code:
function chromeExtension()
{
        
    $this->load->model('home/welcome_page_model');
    $data = $this->welcome_page_model->latestThreadsForChromeExtension();
    echo json_encode($data);
            
}

But, right now i'm having strange warning from chrome consol & that is...

"Resource interpreted as script but transferred with MIME type text/html."

Dose any body have any idea how to deal with such kind of situation in codeigniter...


Messages In This Thread
how to deal with chrome console warning "Resource interpreted as script but transferred with MIME type text/html" in cod - by El Forum - 01-20-2011, 10:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB