Can I somehow use aJax in my Google Chrome Extension "default_popup".
I have tried the following...
manifest.json:
{
  "name": "My extension",
  "manifest_version": 2,
  "version": "1.0",
  "permissions": [
    "tabs", "http://*/*"
  ],
  "browser_action": {
    "default_icon": "icon.png",
    "default_popup": "popup.html"
  },
  "content_scripts": [
    {
      "matches": ["http://*/*", "https://*/*"],
      "js": ["jquery-1.8.3.min.js", "content.js"],
      "run_at": "document_end"
    }
  ]
}
popup.html:
<html>
<body>
<script>
$.ajax({
    type: "GET",
    url: "http://www.mysite.com/api.php"
}).done(function(response) {
    alert("work");
}).fail(function(response) {
    alert("doesn't work");
});
</script>
</body>
</html>
Does anyone have any ideas how to do this?