Click to See Complete Forum and Search --> : combo box selection netscape


Gopinath
06-19-2003, 11:04 PM
I have a problem in netscape7.
While creating combo's dynamically and placing it inside div tag .If the style is overflow:auto or overflow:scroll,
combo is not functioning properly ie, drop down box is not displayed.
copy this code and run in the netscape 7,and send me reply
--------------------------------------------------------
<HTML>
<HEAD>
<TITLE></TITLE>
<script language="javascript">
function changefun() {
val = document.frm.s1.value;
alert(val);
}
function changefun1() {
val = document.frm.s2.value;
alert(val);
}
function loadMe() {
var txt;
txt = "<table border=1 width=50%><TR><TD></TD></TR><TR><TD>"
txt += "<select name='s2' onchange='changefun1();'>"
txt += "<option name='op1' value=4>Four</option><option name='op2' value=5>Five</option></select></TD></TR></table>"
txt="<table border=1><tr><td><select name='cmd_duration23'><option value=''>select</option><option value='5'>5</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option><option value='45'>45</option><option value='50'>50</option><option value='45'>45</option><option value='60'>60</option></select>min</td><td><textarea rows=2 cols=20 name=txta_notes23></textarea></td></tr><tr><td><select name='cmd_duration23'><option value=''>select</option><option value='5'>5</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option><option value='45'>45</option><option value='50'>50</option><option value='45'>45</option><option value='60'>60</option></select>min</td><td><textarea rows=2 cols=20 name=txta_notes23></textarea></td></tr></table>"
document.getElementById("div1").innerHTML = txt;
}
</Script>
</HEAD>
<BODY onLoad="loadMe();">
<form name="frm"><center><div id="div1" style="width:300; height:50; overflow:auto">
</div></center></form>
</BODY>
</HTML>

:confused:

Gopinath
06-19-2003, 11:43 PM
if the data is more i want to have scroll,so i want to have overflow:scroll or auto

Gopinath
06-23-2003, 09:09 AM
i am very much trouble with my probe.
my problem is
i am placing the combo box in my form.
combo box is placed inside one div tag.
in div tag, if i mention overflow:scroll property, i can't click the combo box.
i want to overcome the problem
so i removed overflow (style)property
but i need scroll bar at the same time the i have to select from the combo box.

let the thing is, in netscape browser, within the div tag i am placing one combo box.
i have to set the scroll bar property to the div tag and at the same time i want to populate the combo box details

help pls