COMMUNICATE WITH A ACTIVE WEB SITE IN Internet EXPLORER (5.0) 
Author Message
 COMMUNICATE WITH A ACTIVE WEB SITE IN Internet EXPLORER (5.0)

Dear All,

How do you communicate with a web browser and the open web site?

Here is what I want to do:

I have a open web site in Internet Explorer with a FORM (text boxes, scroll
boxes, and a SUBMIT button). It has over 10 text boxes. They all have a
NAME= property. How do I find these and fill them in with text?

Then I want to press the SUBMIT button. How can I approach this?

Thank you in advance.

Sincerely,
Farshad Hemmati



Wed, 20 Mar 2002 03:00:00 GMT  
 COMMUNICATE WITH A ACTIVE WEB SITE IN Internet EXPLORER (5.0)


Quote:
> Dear All,

> How do you communicate with a web browser and the open web site?

> Here is what I want to do:

> I have a open web site in Internet Explorer with a FORM (text boxes,
scroll
> boxes, and a SUBMIT button). It has over 10 text boxes. They all have a
> NAME= property. How do I find these and fill them in with text?

> Then I want to press the SUBMIT button. How can I approach this?

> Thank you in advance.

> Sincerely,
> Farshad Hemmati

> From oigres P

Try...

Dim cntrl as  variant ' or textbox
For each cntrl in Form1.controls 'or name of form
   if typeof(cntrl) is text then
       'put text in textboxes
       cntrl.text="what text you want to put in"  'not sure about this line
   end  if
next cntrl
'press submit button ?
submit.value=true ' assumes button is called submit
'    ............................................................any use?



Thu, 21 Mar 2002 03:00:00 GMT  
 COMMUNICATE WITH A ACTIVE WEB SITE IN Internet EXPLORER (5.0)
I am not trying to do anything with my own form. I want to find the hWND of
the Internet Explorer window and then find out the hWND of the dynamically
loaded textbox that they use inside the web browser in the FORMS. Then I
want to change the property and then press the SUBMIT button (also
dynamically loaded for use in the web site.

--
Sincerely,
Farshad Hemmati
Microsoft Visual Basic MVP
CompuCated Technologies
http://www.compucated.com/
-------------------------------------------------------
MAKE YOUR MEMORIES ELECTRONIC
Get Your Photo Album Software Now!
http://www.compucated.com/album/
-------------------------------------------------------


Quote:



> > Dear All,

> > How do you communicate with a web browser and the open web site?

> > Here is what I want to do:

> > I have a open web site in Internet Explorer with a FORM (text boxes,
> scroll
> > boxes, and a SUBMIT button). It has over 10 text boxes. They all have a
> > NAME= property. How do I find these and fill them in with text?

> > Then I want to press the SUBMIT button. How can I approach this?

> > Thank you in advance.

> > Sincerely,
> > Farshad Hemmati

> > From oigres P
> Try...

> Dim cntrl as  variant ' or textbox
> For each cntrl in Form1.controls 'or name of form
>    if typeof(cntrl) is text then
>        'put text in textboxes
>        cntrl.text="what text you want to put in"  'not sure about this
line
>    end  if
> next cntrl
> 'press submit button ?
> submit.value=true ' assumes button is called submit
> '    ............................................................any use?



Thu, 21 Mar 2002 03:00:00 GMT  
 COMMUNICATE WITH A ACTIVE WEB SITE IN Internet EXPLORER (5.0)
Farshad,

    What you suggest isn't the right way to go about it.

    What you want to do is get the running instance of Internet Explorer.
Look at Knowledge Base article Q176792 for information on how to do this.

    Once you have the instance you want, you can access the form through the
document property of Internet Explorer, and use the Document Object Model to
get access to the form, the textboxes, everything, populate the values, and
then submit them.

--
                         - Nicholas Paldino



Sat, 23 Mar 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. COMMUNICATE WITH A ACTIVE WEB SITE IN Internet EXPLORER (5.0)

2. COMMUNICATE WITH A ACTIVE WEB SITE IN Internet EXPLORER (5.0)

3. VBA communicated with a web site

4. Navigating "active" Internet Explorer

5. Internet Explorer Plug In Image File Viewers And VB (Active X)

6. Active X In Internet Explorer

7. Internet Explorer Plug In Image File Viewers And VB (Active X)

8. Internet Explorer Plug In Image File Viewers And VB (Active X)

9. Can Active X Document control Internet Explorer

10. Access DataBase whith a active X in a Internet explorer page

11. Internet Explorer Plug In Image File Viewers And VB (Active X)

12. Internet Explorer Plug In Image File Viewers And VB (Active X)

 

 
Powered by phpBB® Forum Software