Hi..
After this issue got resolved,i am facing a problem.
Actually my requirement is this that i need to place the list of account views coming from xmlHttp.responseText in a dropdown(i.e populate a dropdown).
So i tried sending response from my action class to javascript function as (i.e if the account view list contains 3 values IA,FA,GA,then
I am creating a HTML select structure dynamically in action class and sending it to javascript function)
so my response (i.e xmlHttp.responseText looks like
<select>
<option>IA</option>
<option>FA</option>
<option>GA</option>
</select>
In order to populate the dropdown,in my JSP ,i have created a div like this
<td id="" >
<div id="drpdwndiv">
</div>
</td>
and in my javascript function where i am getting the response,I am trying to set the structure of select box in the form of response by
document.getElementById("drpdwndiv").innerHTML=xmlhttp.responseText;
.
but some how it is not getting executed.the alert("set") is not getting executed.
can any one please help me?