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