Aniket
unread,Mar 21, 2005, 7:57:03 AM3/21/05You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.