HTML - reading form elements through ocx?

paulclif

New Member
Progress 9.1D (no webspeed) I have a basic Progress window with a Webbrowser OCX control.
Progress loads a webpage with navigate(). The Webpage has one form, 5 text boxes, and a submit button at the bottom.
My problem is I would like to be able to read the values entered in the textboxes on the page. Is there a
way to do this by reading the properties of the ocx control (no webserver)? Also, is there a way to detect the "submit button" being pressed?

/*xform = chCtrlFrame:webbrowser:window:document:forms[0]. not valid property. I think I need this to obtain the number of form elements. */

MESSAGE chCtrlFrame:webbrowser:document:forms[0] skip /* handle to the form? returns an integer */
chCtrlFrame:webbrowser:document:forms:LENGTH SKIP /* correctly tells me I have one form on the page*/
VIEW-AS ALERT-BOX.
 
Top