Please help! I'm trying to write a visual basic program that makes selections on a webpage where I work. The problem that I'm having is that the webpage has several drop down selection boxes that the values in the second and third dropdowns change once the first dropdown is selected. I've written a program that will set the value of the first dropdown box but it never updated the second and 3rd dropdown boxes. I'm not sure what i'm doing wrong. It seems that a postback event is not actually being triggered.
The code i'm using is
<code>
myIE.document.all("ddModel").Value = "123SV" ' this should set the value to what i'm wanting
</code>
The website looks like this before making any selections
<code>
<select name="ddModel" onchange="__doPostBack('ddModel','')" language="javascript" id="ddModel">
<option selected="selected" value=""></option>
<option value="123SV">123SV</option>
</select>
<select name="ddNo" onchange="__doPostBack('ddNo','')" language="javascript" id="ddNo">
<option value="0">0</option>
</select>
<select name="ddSerial" onchange="__doPostBack('ddSerial','')" language="javascript" id="ddSerial">
<option value="0">0</option>
</select>
</code>
After i've made my first selection on the website it changes to look like this(if selection is made by hand, if it's made by the program it shows the correct selection in the drop down but it's not selected in the source code)
<code>
<select name="ddModel" onchange="__doPostBack('ddModel','')" language="javascript" id="ddModel">
<option value=""></option>
<option selected="selected" value="123SV">123SV</option>
</select>
<select name="ddNo" onchange="__doPostBack('ddNo','')" language="javascript" id="ddNo">
<option value="366">0</option>
<option value="349">000001</option>
<option value="206">000002</option>
<option value="249">000003</option>
</select>
<select name="ddSerial" onchange="__doPostBack('ddSerial','')" language="javascript" id="ddSerial">
<option value=""></option>
<option value="0">0</option>
<option value="1">1</option>
</select>
</code>