Problem in getting a field value in firefox and Chrome , in

I have in my main page the following function defined:



function getField(wid,field) {

if (_isIE) {

alert(dhxWins.window(wid)._frame.contentWindow.document.getElementById(field).value);

} else {

alert(dhxWins.window(wid)._frame.contentDocument.getElementById(field).value);

}

}





After creating 2 aditional windows and calling “parent.getField(WindowId, FieldName);” to get the value of a





In IE I get the correct value of the field, in Firefox and in Chrome I get a



dhxWins.window(wid)._frame.contentDocument.getElementById(field) is null



What �m I doing wrong? Help is very appreciated.




I had the same problem.



  has no id. Use instead. name-attribute is used as label.

Thanks for the quick response. great!