I’m having trouble getting the values from the dhtmlXComboFromSelect in Firefox. If I use A, firefox does not post the values from the select like its supposed to, but IE does. If I use B, firefox posts the values, but IE comes up with a javascript error, ‘Invalid argument’
A: var za00=new dhtmlXComboFromSelect(‘combo_zone00’);
B: var za00=new dhtmlXComboFromSelect(‘combo_zone00’, ‘insp_code00’);
100ABCDEFGHIJKLMNOPQRSTUVWXUAUBUCUDPAPBPCPDPEPFPGPHDADBDCDDDEDFDG
var za00=new dhtmlXComboFromSelect(‘combo_zone00’);
// var za00=new dhtmlXComboFromSelect(‘combo_zone00’, ‘insp_code00’);
za00.DOMelem_input.style.backgroundColor =’#ffdddd’;
za00.enableFilteringMode(true);
The correct code is
var za00= dhtmlXComboFromSelect(‘combo_zone00’); //new is not necessary
but it is not critical.
The second parameter can be used to specify size, the name of input element always taken from source select box.
Please check attached sample
1233237278.zip (17 KB)
I’ve made the updates per the sample not use “new”. Also I found I had name twice in my select so I fixed that two. But I’m still not getting the value when posting from Firefox. Could there be something else interfering? The second parameter thing doesn’t work as it really is the style attribute as stated. I’m at a loss. Something must be interfering. I attached page source. It does work like its supposed to in IE. I’m just not getting the attributes posted from Firefox.
job_inspection_complete_page.html.zip (8.16 KB)
The sample which you have attached to the previous post doesn’t contain the code mentioned earlier ( it doesn’t contain any combo initialization code ) , but I was able to reconstruct the problem.
You have form tag placed between table and tr tags which is not valid position and may affect data sending, if the same actual for the original page - just move form tag before
Thank you. Not sure how long that would have taken me. If ever. IE is probably to forgiving and allows sloppiness. Thanks a bunch!!!