I’d like to report you a small bug when using DHTMLXCombo
I’ve always used Firefox and Opera, no issues about them, a colleague of mine reported problems with MS Explorer (strange, isn’t it ? ).
let’s take a short example:
Create a combo using a “standard” HTML combo syntax like:
123
And use this JS code to create an object:
window.dhx_globalImgPath = “combo/”;
var mycombo = new dhtmlXComboFromSelect(“mycombo”,“Record[mycombo]”);
mycombo.loadXML(“xml.dataload.php?value=123”);
mycombo.enableFilteringMode(true, “xml.dataload.php”, false);
mycombo.setOptionWidth(600);
Code is fine and working with FF and Opera, when using Explorer you got an error on dhtmlxcombo.js (line 61 in “encoded” js page), the first error is in this statement:
z.style.width = width+“px”;
you must change the statement to:
z.width = width+“px”;
if you want to be compliant with Explorer
This is NOT the only error, this is just the first one reported by error Explorer console
If you create the JS object with:
var mycombo = new dhtmlXCombo(“mycombo”,“Record[mycombo]”, 300);
instead of: var mycombo = new dhtmlXComboFromSelect(“mycombo”,“Record[mycombo]”);
Everything works fine, obviously you need to change the HTML code by replacing with:
I don’t like explorer and its behaviour but when you’re creating a portal for foreign users you need to face its “standard capabilities”
Hope it helps you to fix the bug
Cheers
Andrea (Ben) Benini