Re: Need help with IHTML input button element
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Wed, 14 Jun 2006 11:26:34 -0400
Avik <avikray84@xxxxxxxxx> wrote:
I'm trying to fill some values into text fields in
http://samples.thinkgeo.com/GeoCodeUSASampleApps/GeoCodeUSASample.aspx
. but i'm not able to submit the reverse geocode button
programmatically. can anyone please help me with this?
following is the concerned part of the code:
//Programmatically submitting the reverse geocode button
MSHTML::IHTMLInputButtonElementPtr act1=pAllElems->item
("btnReverseGeocode");
action->form->submit();
Make it
act1->click();
The page is a single form having two submit buttons. The server needs to
know which one was used to submit the form, so you need to imitate
clicking on a button rather than going directly through the form
element.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- References:
- Need help with IHTML input button element
- From: Avik
- Need help with IHTML input button element
- Prev by Date: Re: WebBrowser border
- Next by Date: Re: WebBrowser border
- Previous by thread: Need help with IHTML input button element
- Next by thread: Re: Need help with IHTML input button element
- Index(es):