Help with drop box list from IE
Posted: Thu Apr 12, 2012 2:56 am
I hoping someone can help me with selecting from a drop box list from IE webpage.I'm able to change the value but it not submitting it or updating the page with the year i selected.
the source code on the web page is the following
{code}
<select id="YEAR" name=year size="1" onChange="doChange()"> <option value="2001" >2001 <option value="2002" >2002 <option value="2003" >2003
function doChange() { var wsub1,wsub2,wDate; wsub1 = document.JOBLISTFORM.month.selectedIndex; wsub2 = document.JOBLISTFORM.year.selectedIndex; wDate = document.JOBLISTFORM.year[wsub2].value + document.JOBLISTFORM.month[wsub1].value + "01"; CL(wDate); }
{/code}
-----------------------------------------------------
This is the code im using to change the value and submit but it does not submit.....
oIE.Document.Forms(0).Item("YEAR").Value = 2003
oIE.Document.Forms(0).Submit
the source code on the web page is the following
{code}
<select id="YEAR" name=year size="1" onChange="doChange()"> <option value="2001" >2001 <option value="2002" >2002 <option value="2003" >2003
function doChange() { var wsub1,wsub2,wDate; wsub1 = document.JOBLISTFORM.month.selectedIndex; wsub2 = document.JOBLISTFORM.year.selectedIndex; wDate = document.JOBLISTFORM.year[wsub2].value + document.JOBLISTFORM.month[wsub1].value + "01"; CL(wDate); }
{/code}
-----------------------------------------------------
This is the code im using to change the value and submit but it does not submit.....
oIE.Document.Forms(0).Item("YEAR").Value = 2003
oIE.Document.Forms(0).Submit