posted 13 years ago
Hiii,
In my application, I stored database values into an array list and populated on html table using logic:iterate. There is a two combo boxes on each row for storing month details. But in opera 10.6.3 first page is populated with data then next time body is loading. I couldn't solve this issue. If a
Codes are as follows
---------------------------------------------------------------------------------------------------
<select name="startMonth<%=i%>" id="startMonth<%=i%>" class="city-box" style="width: 50px; height: 20px;"
onmouseover="showToolTipC(event,this,'Starting Month');return false"
onmouseout="hideToolTipC();
value = <bean:write name="data" property="startMonth"/>">
<option value="0" selected="true">-select-</option>
<option value="1">Jan</option>
<option value="2">Feb</option>
<option value="3">Mar</option>
<option value="4">Apr</option>
<option value="5">May</option>
<option value="6">Jun</option>
<option value="7">Jul</option>
<option value="8">Aug</option>
<option value="9">Sep</option>
<option value="10">Oct</option>
<option value="11">Nov</option>
<option value="12">Dec</option>
</select>
<script>
var sel=document.getElementById("startMonth<%=i%>");
var val='<bean:write name="data" property="startMonth"/>';
sel.value=val;
</script>
--------------------------------------------------------------------------------------------------------------------------
After populating all the values from array list, then however, page is refreshing. On that time start month value reset to -select-.
I don't know I am on the right way. If any one have suggestions, please reply me. It happens only on opera 10.6 version.