Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Sven Meyfarth
  Where is Sven Meyfarth?
 Santa Cruz de Tenerife
 Spain
 Sven Meyfarth
 To: Norman Galsim
  Where is Norman Galsim?
 Auburn
 Australia
 Norman Galsim
Subject: RE: HTML Code reader
Thread ID: 93201 Message ID: 93497 # Views: 3 # Ratings: 0
Version: Visual FoxPro 6 Category: General VFP Topics
Date: Tuesday, April 18, 2006 11:25:10 AM         
   



> I just want to know if I could do some web programming using visual foxpro mate, let's say I want my visual foxpro program to input certain value on the textbox in the http://www.xe.com/ucc/ and then my program will also click the command button "go" stuff like that... is there any website where I could refer to get codes suitable for doing such program?
>
> thanks for your time
> norms
>
> > You want to know a website to post a value? http://www.xe.com/ucc/, Post a value in the unit box. If you want the code to do this, then I misunderstood your question.
> >
> > Mike Gagnon
> >
> >
> >
> > > WOW! thanks a lot mate its working now, just as I wanted =) thank you very much! btw you know of some sites I could refer to do a bit of web programming using visual foxpro? let's say I wanted to put values on certain fields on a webpage etc.?
> > >
> > > thanks again
> > > norms
> > >
> > > > > yeah I wanted to load the codes of an html so I read it directly from net is this code you gave me run on visual foxpro 6? Sorry bout very noob questions guys =S
> > > >
> > > > I no longer use VFP6.0, but as far as I know, yes it works on VFP.6. If you get an error, it might be that the webpage takes a long time to load, you may want to add an INKEY() to makes sure the page is loaded.
> > > >
> > > >
> > > > Mike Gagnon
> > > >
> > > >
> > > > > > Perhaps you want to load the content of webpage (and either keep the tags or strip them)
> > > > > >
> > > > > > No tags
> > > > > >
oIE = createobject('internetexplorer.application')
> > > > > > oIE.Navigate('www.tek-tips.com')
> > > > > > lcStr=oIe.Document.body.innertext
> > > > > > ?lcStr

> > > > > >
> > > > > > With Tags
> > > > > >
> > > > > >
oIE = createobject('internetexplorer.application')
> > > > > > oIE.Navigate('www.tek-tips.com')
> > > > > > lcStr=oIe.Document.body.innerHTML
> > > > > > ?lcStr
> > > > > > 

> > > > > >
> > > > > > Mike Gagnon
> > > > > >
> > > > > >
> > > > > > > Hi Guys!
> > > > > > >
> > > > > > > Do you have any idea how can I read source code of an html? is it possible in visual foxpro 6?
> > > > > > >
> > > > > > > Thanks a lot
> > > > > > > Norms

> > > > >
> > > > >
> > > > >


Best way for me to do this is to analyze the website how it gets his variables (GET/POST) and to
add the variables to the url like this:

http://www.somebody.de/index.php?name=Sven&submit=1

The Output you can show in Webbrowser-Control or store to string by WinHTTP-Object.

This if for an website which has a textbox with name="name" and a button with name"submit".

But on all website it can be different. you must analyse the sourcecode of website and search for -Tag.

Hope this helps.
____________________________________
Best Regards
S.Meyfarth
VFP8,MySQL,PHP,Image Procession

ENTIRE THREAD

HTML Code reader Posted by Norman Galsim @ 4/13/2006 10:09:34 AM
RE: HTML Code reader Posted by Sven Meyfarth @ 4/13/2006 10:15:39 AM
RE: HTML Code reader Posted by Norman Galsim @ 4/15/2006 2:58:11 PM
RE: HTML Code reader Posted by Andy Kramek @ 4/13/2006 12:42:02 PM
RE: HTML Code reader Posted by Norman Galsim @ 4/15/2006 2:54:15 PM
RE: HTML Code reader Posted by Mike Gagnon @ 4/13/2006 1:54:03 PM
RE: HTML Code reader Posted by Norman Galsim @ 4/15/2006 2:51:05 PM
RE: HTML Code reader Posted by Mike Gagnon @ 4/15/2006 3:42:53 PM
RE: HTML Code reader Posted by Norman Galsim @ 4/17/2006 11:36:03 AM
RE: HTML Code reader Posted by Mike Gagnon @ 4/17/2006 7:00:07 PM
RE: HTML Code reader Posted by Norman Galsim @ 4/18/2006 4:29:42 AM
RE: HTML Code reader Posted by Sven Meyfarth @ 4/18/2006 11:25:10 AM
RE: HTML Code reader Posted by Mike Gagnon @ 4/18/2006 11:43:37 AM
RE: HTML Code reader Posted by William Sanders @ 4/19/2006 12:32:08 AM
RE: HTML Code reader Posted by Norman Galsim @ 4/19/2006 4:13:16 PM
RE: HTML Code reader Posted by Boudewijn Lutgerink @ 4/18/2006 11:38:09 AM