Home All Groups Group Topic Archive Search About

MSHTML: Search and update

Author
6 Jun 2006 12:06 PM
pkruger
Hello everyone,

I want to do a bit of AxWebBrowser automation, but it is very new to me. :-)

Given the following HTML code on a webpage:

<td class="bdr_tl">
<input type="hidden" name="x_id" value="x1as">x1as</td>
<td class="bdr_t"><input type="text" name="x_val" value="" size="4"
maxlength="4"></td>

<td class="bdr_tl">
<input type="hidden" name="x_id" value="x2a2">x2a2</td>
<td class="bdr_t"><input type="text" name="x_val" value="" size="4"
maxlength="4"></td>

I want to search for each x_id (which has a unique "value") and then update
the value of the corresponding x_val field.

Any ideas? :-)

--
Pieter Kruger

Bloemfontein
South Africa

Author
6 Jun 2006 2:37 PM
Cor Ligthert [MVP]
Pieter,

Have a look at the last part of this sample.

http://www.vb-tips.com/default.aspx?ID=541adf13-d9c0-435c-893f-56dbb63fdf1c

I hope this helps,

Cor

Show quoteHide quote
"pkruger" <pkru***@discussions.microsoft.com> schreef in bericht
news:EF7CCF66-2894-49D4-9088-726F34F1CCF6@microsoft.com...
> Hello everyone,
>
> I want to do a bit of AxWebBrowser automation, but it is very new to me.
> :-)
>
> Given the following HTML code on a webpage:
>
> <td class="bdr_tl">
> <input type="hidden" name="x_id" value="x1as">x1as</td>
> <td class="bdr_t"><input type="text" name="x_val" value="" size="4"
> maxlength="4"></td>
>
> <td class="bdr_tl">
> <input type="hidden" name="x_id" value="x2a2">x2a2</td>
> <td class="bdr_t"><input type="text" name="x_val" value="" size="4"
> maxlength="4"></td>
>
> I want to search for each x_id (which has a unique "value") and then
> update
> the value of the corresponding x_val field.
>
> Any ideas? :-)
>
> --
> Pieter Kruger
>
> Bloemfontein
> South Africa