473,651 Members | 3,063 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1961
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.k ulnet.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.k ulnet.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.k ulnet.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.k ulnet.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.k ulnet.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***** **********@seve n.kulnet.kuleuv en.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
2266
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 gogle1.com This is lee's website. 1 lee's gogle2.com This is lee's website. 2 Jon's yaho1.com This is Jon's website. 2 Jon's yaho2.com This is Jon's website.
14
3222
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. The web page on which the data is displayed has a list of countries. Each country has a label heading under which websites are listed that have information on that country. Any given website may appear many times (under different countries) if it...
1
1367
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 ranges (say a year ago from today and a year from now) which only shows dates that haven't been used in the websitehits table for a given website. For example if my table contains something like:
1
1434
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 results displayed within > an HTML page? Here is a (unix) starting point to play around with. It uses Perl's XML::Simple (http://search.cpan.org/dist/XML-Simple/).
14
5915
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 supervisor. E.g, EMP1 and EMP2 both has the same supervisor SUP1. EMP3 has a supervisor SUP2. EMP4 has supervisor SUP3.
9
1724
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 checked privileges for connecting account and that isn't an issue. Maybe it's my query: $editO = " UPDATE organization SET
8
2438
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 the customer browse (from a dynamically created drop down list - which i've done) the items by furniture class, and then have the query results limited to 26 items per page, in two columns using DIVs. The CSS for the DIVs is taken care of, as is the...
3
2907
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 IT guy is no where to be found. Everything is working on the new server except for one .asp page in the website that ties to the Access database. When I try and input data on the page and save it I receive the follwoing error: Microsoft OLE DB...
3
4826
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 but have 2 problems: I dont know how to code the results into the table, and make the table repeat itself 5 times per page (and recognise it needs a new page)
0
8361
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8807
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8701
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8466
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7299
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5615
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.