i'm trying to write a little chrome extension. In the content script i'm using jquery-ui in order to offer a dialog:
$("<div>hello!</div>").dialog();
When running the extension die dialog is rendered without any images and the debug console tells me, that the images where not found:
GET http://testsite.com/images/ui-bg_diagonals-thick_20_666666_40x40.png 404 (Not Found)
Thats my folder layout:
.
├── css
│ ├── images
│ │ ├── animated-overlay.gif
│ │ ├── ui-bg_diagonals-thick_18_b81900_40x40.png
│ │ ├── ui-bg_diagonals-thick_20_666666_40x40.png
│ │ ├── ui-bg_flat_10_000000_40x100.png
│ │ ├── ui-bg_glass_100_f6f6f6_1x400.png
│ │ ├── ui-bg_glass_100_fdf5ce_1x400.png
│ │ ├── ui-bg_glass_65_ffffff_1x400.png
│ │ ├── ui-bg_gloss-wave_35_f6a828_500x100.png
│ │ ├── ui-bg_highlight-soft_100_eeeeee_1x100.png
│ │ ├── ui-bg_highlight-soft_75_ffe45c_1x100.png
│ │ ├── ui-icons_222222_256x240.png
│ │ ├── ui-icons_228ef1_256x240.png
│ │ ├── ui-icons_ef8c08_256x240.png
│ │ ├── ui-icons_ffd27a_256x240.png
│ │ └── ui-icons_ffffff_256x240.png
│ └── jquery-ui-1.10.4.min.css
└── js
├── jquery-1.11.1.min.js
└── jquery-ui-1.10.4.min.js
so the question is: How can i use the images bundled with jquery-ui in the content page of my extension
Edit: the content script is injected via manifest:
"content_scripts":
[
{ "matches": ["<all_urls>"],
"js": ["js/contentScript.js","3dparty/js/jquery-1.11.1.min.js","3dparty/js/jquery-ui-1.10.4.min.js"],
"css": ["3dparty/css/jquery-ui-1.10.4.min.css"]
}
],