Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Elegant and authentic way of submitting a form / navigating to a U

1 view
Skip to first unread message

Aniket

unread,
Mar 21, 2005, 7:57:03 AM3/21/05
to
What is the elegant, authentic, robust and deterministic way of navigating to
a URL using DOM? The requirement is in a BHO for Internet Explorer. The
situation is that after the document is completed loaded
(DISPID_DOCUMENTCOMPLETE for the top frame has been recevied), all input
elements are filled up for one of the many forms, and the form needs to be
processed by the corresponding URL. Now there are three situations that I
know of, viz.,
(a) if there is an input element of type submit, use the click method
of this element (IHTMLElement)
(b) if the URL does not begin with "http" (presume there is a script
associated), use the Navigate2 method of IWebBrowser2
(c) in absence of above two, use submit method associated with the form
(IHTMLFormElement)
The above approach is neither elegant nor complete, I look forward to a
comprehensive, clean and complete approach.
0 new messages