1

I am developing a chrome extension with options page, I want to put on the page options jquery , I insert the jquery in options.html this way.

<script src="jquery.tablesorter.min.js"></script>

this form does not work WHAT should I do?

My manifest

{
 "name": "Compra Protegida",
 "options_page": "options/options.html",
 "version": "1.6",
 "description": "Alerta usuários ao acessar sites de compras virtuais não recomendado pelo Reclame Aqui ou presentes na Lista do Procon. ",
 "background" :  { 
 "scripts" :  [ "background.js" ] 
 } , 
"page_action": {
"default_icon": "19.png",
"default_title":"Site não recomendado",
"default_popup":"popup.html"
},
"permissions" : [
"tabs"
],
"icons" : {
"48" : "48.png",
"128" : "128.png"
},
"manifest_version": 2
}
guto
  • 117
  • 1
  • 1
  • 8
  • 1
    You need to make sure that the actual jQuery you are using is in a separate script. ie. `` for including jQuery and ALSO `` for the jQuery ***you*** want to use. You cannot have any inline ` – ᔕᖺᘎᕊ Jan 03 '15 at 14:41
  • everything is right with my jquery, only the css is working jquery no sign – guto Jan 03 '15 at 14:47
  • 1
    Have you linked to an external js file containing your jquery code? Can you post your options.html page? – ᔕᖺᘎᕊ Jan 03 '15 at 14:53
  • everything is connected properly do not know why does not work, will be should I use content script in the manifest for jquery files? – guto Jan 03 '15 at 14:57
  • If you want to use jQuery in your content script see [here](http://stackoverflow.com/questions/3209790/jquery-in-google-chrome-content-script). – ᔕᖺᘎᕊ Jan 03 '15 at 15:00
  • Presumably you have included jquery.js as well as jquery.tablesorter.min.js? As the user above asked, if you can post your options.html this will help us help you better. – Alex Jan 04 '15 at 19:26
  • friends I managed to fix my mistake, I put a script embedded in options.html and find here at stackoverflow which is not allowed inline script, I created a file with the script and put in options.html, worked, thank you for the help and the the provision of you: D – guto Jan 04 '15 at 19:30

0 Answers0