Dhtmlx.image_path has no effect

Hello,

For some reason, setting the global image path with dhtmlx.image_path does not seem to work.

I have an application with several layouts, forms, grids, etc…, I use standard dhtmlxSuite.
I keep getting the following errors :

"NetworkError: 404 Not Found - http://localhost/login/imgs/dhxtabbar_skyblue/dhxtabbar_arrows.gif"
dhxtabb...ows.gif
"NetworkError: 404 Not Found - http://localhost/login/imgs/dhxwins_skyblue/dhxwins_icon.gif"
dhxwins_icon.gif
"NetworkError: 404 Not Found - http://localhost/login/imgs/dhxwins_skyblue/dhxwins_buttons.gif"
dhxwins...ons.gif
"NetworkError: 404 Not Found - http://localhost/login/imgs/dhxlayout_skyblue/dhxlayout_cell_btns.gif"
dhxlayo...tns.gif
"NetworkError: 404 Not Found - http://localhost/login/imgs/dhxlayout_skyblue/dhxlayout_sep_v.gif"
dhxlayo...p_v.gif
"NetworkError: 404 Not Found - http://localhost/login/imgs/dhxlayout_skyblue/dhxlayout_sep_h.gif"
dhxlayo...p_h.gif
"NetworkError: 404 Not Found - http://localhost/login/imgs/dhxcombo_skyblue/dhxcombo_arrow_down.gif"

Dhtmlx keeps looking for the images in the applications folder “/login/imgs/”, this /login folder is directly under web root folder.When I copy the images to this location, everything is ok. But I want a common image folder for all my applications, not just for the /login applications.

The folder in the error message does not change no matter what I put in dhtmlx.image_path.
Currently I use dhtmlx.image_path = “/dhtmlxSuite/codebase/imgs/”;
This dhtmlxSuite folder is directly under the webroot. Also “…/dhtmlxSuite/codebase/imgs/” does not work.
I already checked some details: no, I did not forget the last / after imgs, and no, I did not change the image_path elsewhere (I do not use setImagePath() on component level). And yes, the /codebase/imgs/ folder indeed contains the image folders and images…

Any specific place where the dhtmlx.image_path should be placed? For now it is almost immedetiately after loading dhtmlx.js.
Am I right to suppose that when I start folder url with “/”, it should be relative to web root, not to current folder?
What else could be wrong?

Beste regards, Maxx

Hello
This method is not supported from 4+ version: deprecated with setImagePath method.
Accordiong to the migration article:
docs.dhtmlx.com/layout__migration.html

You need to use only setIconsPath if you need icons

Hello Darya,

Thanks for the quick response. If this method is deprecated, I think it would be good to make that more clear in the documentation. Even the very first example (“your first app”) stil describes this method as valid, in step 3 of that tutorial.
Is their a way I can set the image_path for all components and applications at once? Like dhtmlx.setImagePath, or something else? I think I am not the only one who would find this very practical.

Beste regards,

Maxx

PS I meant dhtmlx.setImagePath(“string”); of course…

Thank you. We will fix it