Re: How to call HTML (with POST) page from Web form



I'm not sure what you mean by the first statement. If the FORM has
been POSTed then you are only wanting to get the POST results from the
result page?

On the second question, this is a psuedo example of how to get it
going. I'm actually using a component from Clever Components for most
parsing. I find it to make those task easier and they have excellent
support.

//get things going by declaring the IE instance and referencing MSHTML
for document parsing
private SHDocVw.InternetExplorer IE_Inst = new
SHDocVw.InternetExplorerClass();
private mshtml.HTMLDocument ieDoc;

//use the following for getting at HTML in the document. Make use of
OuterHTML values you see in the debugger. This allows you to parse the
HTML.
mshtml.HTMLBody ieBody;
ieDoc = (mshtml.HTMLDocument)IE_Inst.Document;

//get information about the document body if you need to
ieBody = (mshtml.HTMLBody)ieDoc.body;
DocHeight = (double)ieBody.scrollHeight

//Just an example of doing a POST in the IE instance you've created
NavigateToWebPage(FormPostURL, formFieldString, vHeaders);

You can see I've wrapped the IE Navigate method just to check for null
strings and other validations. I'm also passing in my own Header
string. The actual Navigate uses two here. You'll need to do more
work to get it going but it should give you an idea of how things work.

Brett

.



Relevant Pages

  • Re: FAQ Topic - How do I access a frames content? (2009-10-25)
    ... Dr J R Stockton wrote: ... you are not reading any files "HTML or TXT, as it exists on disc" - ... "Given an array of strings with the minimum 2 and the maximum 1o ... find the shortest common word in these strings. ...
    (comp.lang.javascript)
  • Re: FAQ Topic - How do I access a frames content? (2009-10-25)
    ... you are not reading any files "HTML or TXT, as it exists on disc" - ... you were getting so far "by using innerHTML ..., ... "Given an array of strings with the minimum 2 and the maximum 1o ... find the shortest common word in these strings. ...
    (comp.lang.javascript)
  • Re: efficiency of JList setElementAt()
    ... If you modify your program to produce strings about 3 times as long, make the strings HTML with a font color tag, and increase the list size to about 130, I think you'll get the kind of results I cited in my first post. ... The Swing cell renderer design is based on assumptions that construction is expensive and updating values is cheap. ... So let's cache. ...
    (comp.lang.java.gui)
  • Re: Find The Text :-)
    ... personally I would suggest writing your own "wrap" code anyway because you will get much more control that way and much more flexibility, including the ability to do things that the DrawText API cannot do. ... If you don't fancy writing the "wrap" code yourself then a very simple alternative would be to use a borderless standard VB TextBox Control and set its size to the same as your required "wrap rectangle" and just dump your string into its Text property. ... You can then send it an EM_GETLINECOUNT to count the number of wrapped lines and EM_GETLINE messages to get those lines into a VB array of Strings. ... Private Declare Function SendMessage Lib "user32" _ ...
    (microsoft.public.vb.general.discussion)
  • Re: Haldaemon and Vmware
    ... >>replies to private responses rather than replies to the list. ... In case my response wasn't clear to you, I wasn't advocating that HTML posts ... Paul. ...
    (Fedora)

Loading