image_path and icons relative to script?

Hi,

I’m working with a framework that builds a dynamic cache path for assets like js,css,img …
As I’m working with your grid and trying to initialise via obect constructor, I’m having the following issues:

sort_desc.gif sort_asc.gif are always looked up in the projects root folder :frowning: where can I change the path for those?

image_path should be set by path (what it does by default) but if I leave it empty, it should use your default folder structure to walk to your img folder?!

Looking forward to your solution! :wink:

regrads Philipp

In the code:
this.sortImg.src=this.imgURL+“sort_asc.gif”;

this.sortImg.src=this.imgURL+“sort_desc.gif”;

So if the image_path is not defined request sends to the directory where the html is located.

I ran into the same issue recently, and realized that if I changed the css to the following, it fixed the issue. Not sure why these gifs alone have the relative paths defined this way.

Original (sources\dhtmlxGrid\codebase\skins\dhtmlxgrid_dhx_web.css):
.dhxgrid_sort_desc,
.dhxgrid_sort_asc {
background-image: url("…/imgs/dhxgrid_web/sort_desc.gif");
}
.dhxgrid_sort_asc {
background-image: url("…/imgs/dhxgrid_web/sort_asc.gif");
}

Modified:
.dhxgrid_sort_desc,
.dhxgrid_sort_asc {
background-image: url(“sort_desc.gif”);
}
.dhxgrid_sort_asc {
background-image: url(“sort_asc.gif”);
}

Is is possible to get this fixed in a future version?