Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

web form issue ie navigation

Status
Not open for further replies.

tx12345

Technical User
Jan 25, 2007
12
US
hi

i ran into a field that even though the text fills in with the code below, when the form is submitted it still thinks the field is blank.

here is the code i use most of the time:

Code:
Set ff = .Document.getelementbyID("field1")
ff.Value = "1969123"

or

Set ff = .Document.all.item("field1")
ff.Value = "1969123"

i tried:

Code:
Set ff = .Document.getelementbyID("field1")
ff.Click
ff.Value = "2001"

and a few other things but no go. when i submit the form it tells me the field is still blank

here is the html code of form input:

Code:
<input type="hidden" name="years" id="years_9" value=""/>

<input name="yearsYear" id="years_year_9" title="Year"
type="text" maxlength="4" value="" style="ime-mode:disabled" autocomplete="off" class="css0032"
onchange="CallSetDTyears()"/>


might be a trick with the 'onchange' thing. not sure.

thanks

tx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top