javascript - Adding Jquery from extension directory in HTML iframe within XUL -
I want to create a Firefox extension that uses Inbuilt JS and JSN scripts to get a popup panel data with an outlum And show it in that panel.
Here is the image of the panel:
My XUL script is
& Lt; Hbox & gt; & Lt; Button label = "Add task" id = "panel-add-task" /> & Lt; Button label = "Open page" id = "panel-open-weedo" /> & Lt; / Hbox & gt; & Lt; / Vbox & gt; & Lt; / Panel & gt; & Lt; / Popupset & gt;
The issue is that adding Chrome: /addonname/content/jquery.js does not include jquery in that HTML page (tasks.html). How do I go about getting JSON data using Jquery and using JQR and show it in the panel
JSON Item 1 & lt; / Td> & Lt; / TR & gt; & Lt; TR & gt; & Lt; Td> JSON Item 2 & lt; / Td> & Lt; / TR & gt; & Lt; / Tbody & gt; & Lt; / Table & gt; & Lt; / Body & gt;
My directory structure is such
-chrome --content --- tasks.html --- overlay.xul --- overlay.js - - jquery.js --- taskss.json --- api.js --- prefs.js --- options.xul -tasks.html --skin --- (all my icons and css) install.rdf Chrome .manifest
edited ---
is my chrome.manifest file
content addonname chrome / content / addonname content Chrome / Content / Overlay Chrome: //browser/content/browser.xul Chrome: //addonname/content/overlay.xulApp = {ec8030f7-c20a-464f-9b0e-13a3a9e97384} Overlay Chrome: // Navigator / Content / Navigator Xul chrome: // addonname / content / overlay .xul Application = {92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} Skin Addition Classic / 1.0 Chrome / Skin / Style Chrome: //global/content/customizeToolbar.xul Chrome: // Addonname / skin / addonname.css Override Chrome: //addonname/content/options.xul Chrome: //addonname/content/options.xulApp = {ec8030f7-c20a-464f-9b0e-13a3a9e97384} Epversion & lt; = 6. *
Comments
Post a Comment