473,396 Members | 2,082 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to query a website from a form

Hi all,

For gathering certain information in building my database, I'm depending
on the things I found on the web, especially one website (let's call it
www.mywebsite.com). Is there a way to query this site (it has fill in
boxes on the page and a search button) depending on values in my form
and getting the results back in my form? This (general) question is
keeping me out of my sleep for weeks now....

Any tip is appreciated....

Kind regards,

Wim

Nov 12 '05 #1
4 1951
TC
Try the microsoft webbrowser control. Drop one onto your form, then you can
use the .Navigate method to go to that website. Then you can use the methods
& properties of the HTML Document Object Model (which are exposed through
the webbrowser control) to retrieve data from the HTML that the website sent
you.

HTH,
TC
"Wim Verhavert" <wi***********@yahoo.com> wrote in message
news:10***************@seven.kulnet.kuleuven.ac.be ...
Hi all,

For gathering certain information in building my database, I'm depending
on the things I found on the web, especially one website (let's call it
www.mywebsite.com). Is there a way to query this site (it has fill in
boxes on the page and a search button) depending on values in my form
and getting the results back in my form? This (general) question is
keeping me out of my sleep for weeks now....

Any tip is appreciated....

Kind regards,

Wim

Nov 12 '05 #2
Is there also a way of automatically filling in the form on that
website? That the program doesn't automatically outputs the data to my
form is not so big a problem.

Thanks anyway!

Regards,
WV

TC wrote:
Try the microsoft webbrowser control. Drop one onto your form, then you can
use the .Navigate method to go to that website. Then you can use the methods
& properties of the HTML Document Object Model (which are exposed through
the webbrowser control) to retrieve data from the HTML that the website sent
you.

HTH,
TC
"Wim Verhavert" <wi***********@yahoo.com> wrote in message
news:10***************@seven.kulnet.kuleuven.ac.be ...
Hi all,

For gathering certain information in building my database, I'm depending
on the things I found on the web, especially one website (let's call it
www.mywebsite.com). Is there a way to query this site (it has fill in
boxes on the page and a search button) depending on values in my form
and getting the results back in my form? This (general) question is
keeping me out of my sleep for weeks now....

Any tip is appreciated....

Kind regards,

Wim



Nov 12 '05 #3
TC
Yes, you just use the objects, methods & properties of the Document Object
Model, which is exposed by the webbrowser control. This is similar in
principle (but different in detail) to programming in VBA. For example,
you'd use the Submit method of the relevant named form of the Document
object, to send the form.

Wim, I haven't done this for some time, & the details are no longer clear in
my mind. So you'll have to do some research! Check out the web for
information on "webbrowser control" and "HTML Document Object Model".

HTH,
TC
"Wim Verhavert" <wi***********@yahoo.com> wrote in message
news:10***************@seven.kulnet.kuleuven.ac.be ...
Is there also a way of automatically filling in the form on that
website? That the program doesn't automatically outputs the data to my
form is not so big a problem.

Thanks anyway!

Regards,
WV

TC wrote:
Try the microsoft webbrowser control. Drop one onto your form, then you can use the .Navigate method to go to that website. Then you can use the methods & properties of the HTML Document Object Model (which are exposed through the webbrowser control) to retrieve data from the HTML that the website sent you.

HTH,
TC
"Wim Verhavert" <wi***********@yahoo.com> wrote in message
news:10***************@seven.kulnet.kuleuven.ac.be ...
Hi all,

For gathering certain information in building my database, I'm depending
on the things I found on the web, especially one website (let's call it
www.mywebsite.com). Is there a way to query this site (it has fill in
boxes on the page and a search button) depending on values in my form
and getting the results back in my form? This (general) question is
keeping me out of my sleep for weeks now....

Any tip is appreciated....

Kind regards,

Wim


Nov 12 '05 #4
Thanks a lot for all the help!!! You put me in a good thinking path...

TC wrote:
Yes, you just use the objects, methods & properties of the Document Object
Model, which is exposed by the webbrowser control. This is similar in
principle (but different in detail) to programming in VBA. For example,
you'd use the Submit method of the relevant named form of the Document
object, to send the form.

Wim, I haven't done this for some time, & the details are no longer clear in
my mind. So you'll have to do some research! Check out the web for
information on "webbrowser control" and "HTML Document Object Model".

HTH,
TC
"Wim Verhavert" <wi***********@yahoo.com> wrote in message
news:10***************@seven.kulnet.kuleuven.ac.be ...
Is there also a way of automatically filling in the form on that
website? That the program doesn't automatically outputs the data to my
form is not so big a problem.

Thanks anyway!

Regards,
WV

TC wrote:
Try the microsoft webbrowser control. Drop one onto your form, then you
can
use the .Navigate method to go to that website. Then you can use the
methods
& properties of the HTML Document Object Model (which are exposed
through
the webbrowser control) to retrieve data from the HTML that the website
sent
you.

HTH,
TC
"Wim Verhavert" <wi***********@yahoo.com> wrote in message
news:10***************@seven.kulnet.kuleuven.ac .be...
Hi all,

For gathering certain information in building my database, I'm depending
on the things I found on the web, especially one website (let's call it
www.mywebsite.com). Is there a way to query this site (it has fill in
boxes on the page and a search button) depending on values in my form
and getting the results back in my form? This (general) question is
keeping me out of my sleep for weeks now....

Any tip is appreciated....

Kind regards,

Wim



Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: leegold2 | last post by:
Let's I do a mysql query and then I do a, for( $i = 1; $row = mysql_fetch_array($result); $i++ ) {...} and it gives me this: PageID Title URL Description 1 lee's ...
14
by: Bruce W...1 | last post by:
I do a query to MySQL using PHP. Well actually I do too many of them which is the problem, it's too slow. I think maybe an inner join or something would be better but I can't figure this out. ...
1
by: Lukelrc | last post by:
Hi. I have a table (websitehits) which holds statistics about websites. This table has a date field (datecounted). What I need is to create a query which returns a list of dates between two date...
1
by: Bart Van der Donck | last post by:
Jomo (jomo@dynamicdeveloper.co.uk) wrote: > How do I generate a request from an HTML search form > (or button/hyperlink) to search/query an XML data file, > using CGI scripts, and have the...
14
by: Jim Andersen | last post by:
I have a problem with this standard employee-supervisor scenario For pictures: http://www.databasedev.co.uk/self-join_query.html I want to show all employees "belonging" to a specific...
9
by: Jeff Gardner | last post by:
Greetings: I have an UPDATE query (php 5.1.6/mysql 5.0.24a on apache 2.2) that appears to execute with no errors (php,mysql, or apache) but the data in the "UPDATED" table doesn't change. I've...
8
siridyal
by: siridyal | last post by:
I have a wholesale website that i'm working on that shows hundreds of items that are updated from time to time. These items are kept in a mysql database with several tables. I want to let the...
3
by: shawnmiller77 | last post by:
Need Help ASAP! History: Installed new SBS 2003 server on Monday. Migrated IIS, website and current Access database over to new server. I did not develop the website or Access database. Former...
3
by: DigitalWallfare | last post by:
Hi all, This is my first post here, but i've lurked for a while. I'm working on a website but have come across a major stumbling block in the code: I've managed to structure the search query...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.