Categories | Question details Back To List | ||
Mac/Safari does not support dhtmlxcombo DHTMLxCombo(filtering mode) is used on a combo box. like: <SELECT NAME = "abc" ID = "abc_id".....> <OPTION>ALBANIA</OPTION> . . . </OPION> I added a code to capture the onchnage event so that I can perform some desired task where combo value is changed. Everything is perfectly fine on Windows/Safari But on Mac/Safari, javascript method could not find the element by name(abc) as well as by Id(abc_id). I used the syntax: names = document.getElementsByname("abc") alert(names.length) In alert I get 0 which is 1(desirable) in Windows/Mac. How to fix this problem..??? Please help me asap. Thanks in Advance Answer posted by Stanislav on Jul 05, 2008 05:40 The more reliable way is to use element's ID <SELECT id="abc" ID = "abc_id".....> .... var select = document.getElementById('abs'); Answer posted by Ekta on Jul 06, 2008 23:32 I tried with Id also, it is also not taking it. params[:<element-id>] is working fine but document.getElementById(<id>) is not working. If use simpe combo, everything is perfectly fine. Answer posted by Support on Jul 08, 2008 02:28 If you are converting grid to combo object, you can't access it by getElementById before converting var select = document.getElementById('abs'); after converting var combo = abs; The combo object is a JS component, so it can't be accessed or updated in same way as default select element, it has special API to get|set values|states |