I have a dhtmlx combo box on my page, but the drop down arrow image never shows. Actually, I see it for a split second and then it goes away. Kinda like it recognizes the correct link to the image at first, but then it gets broken.
How do I set this path.
I have tried each of the following commands but they don’t seem to make a difference.
ddl.imgURL = “…/…/DHTMLXSuite/imgs/”;
ddl.setDefaultImage("…/…/DHTMLXSuite/imgs/");
After I see the image for a split second and it goes away, I then right click on the image and look at the path and it is pointing to the wrong directory.
How can I set this?
Could you please provide the sample to recreate the issue ?
There really isn’t too much to what I am doing. Here is the code. The 2 commented out lines were attempts to get the image to show. My DHTMLXSuite is the folder where all of my .js code, css and images reside. It was compiled with the libCompiler tool.
The combo_select.gif file is located in the imgs folder.
.js code
var ddlPipelineSegment = dhtmlXComboFromSelect(“ddlPipelineSegment”);
//ddlPipelineSegment.imgURL = “…/…/DHTMLXSuite/imgs/”;
//ddlPipelineSegment.setDefaultImage("…/…/DHTMLXSuite/imgs/");
ddlPipelineSegment.loadXML(“test.xml”);
ddlPipelineSegment.enableOptionAutoHeight(1);
html
I got an email saying that there was an update to this, but I do not see one.
The image path is set for the combo using the dhx_globalImgPath variable:
This still does not work. The image that I said I originally saw for a split second turns out to be the initial control. The image for the dhtmlxCombo still does not work. The image path is still looking for the image in the folder where my js file is included.
Please, check that the path to the images is correct.
I have attached the sample. Possibly it will help.
combo_image.zip (17.7 KB)
Ok I got it. Thanks.
I moved the window.dhx_globalImgPath code so that it is now before the initialization of the combo box.
window.dhx_globalImgPath="…/…/DHTMLXSuite/imgs/";
var ddlPipelineSegment = dhtmlXComboFromSelect(“ddlPipelineSegment”);
Before I had it after the initialization of the combo box, since this is how I would normally do it with the .imgURL property for other controls. The fact that window.dhx_globalImgPath is a completely seperate object was not registering in my mind at first. After looking at your sample, I realized my mistake.