Categories | Question details Back To List | ||
not able to initialize dhtmlxcombo Hi, I am not able to get the dhtmlxcombo initialized .What could be the reason? I am getting the error"dhtmlxComboFromSelect is undefined" Pls check the code below <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="STYLESHEET" type="text/css" href="/centaur/dhtmlxSuite_2_0/dhtmlxCombo/codebase/dhtmlxcombo.css"> <script type="text/javascript" src="/centaur/dhtmlxSuite_2_0/dhtmlxCombo/codebase/dhtmlxcommon.js"></script> <script type="text/javascript" src="/centaur/dhtmlxSuite_2_0/dhtmlxCombo/codebase/dhtmlxcombo.js"></script> <script> window.dhx_globalImgPath="/centaur/dhtmlxSuite_2_0/dhtmlxCombo/codebase/imgs/"; </script> <script> var z=dhtmlXComboFromSelect("combo_zone1"); </script> <style> </style> </head> <body> <div> <select id="combo_zone1" name="alfa1"><option>Hello</option></select> </div> </body> </html> Answer posted by Alex (support) on Jun 22, 2009 06:20 Hello, dhtmlXComboFromSelect can be called only after select element is created <div> <script> var z=dhtmlXComboFromSelect("combo_zone1"); </script> also you should check that combo libraries are correctly included (paths are correct). |