Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 30th, 2006, 4:06 AM   #1
gupta.awadhesh
Newbie
 
Join Date: Apr 2006
Posts: 11
Rep Power: 0 gupta.awadhesh is on a distinguished road
Question Data retrieval

Hi All,

I have a problem in VB. Actually, i m working on a project that is supposed to pick up data from Internet Explorer Web Page, i have gone thru many sites and even MSDN but cudnt find ne information how to retrieve data from IE web page... can someone help me out??? it's very urgent.

Regards
Awadhesh
gupta.awadhesh is offline   Reply With Quote
Old Apr 30th, 2006, 5:52 AM   #2
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,193
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by gupta.awadhesh
Hi All,

I have a problem in VB. Actually, i m working on a project that is supposed to pick up data from Internet Explorer Web Page, i have gone thru many sites and even MSDN but cudnt find ne information how to retrieve data from IE web page... can someone help me out??? it's very urgent.

Regards
Awadhesh
Uhm, that's really unclear. What do you mean by 'Internet Explorer Web Page'? IE, like all browsers, can display any of zillions of web pages. Do you mean you want to be able to parse the HTML that comprises a given page, or what?
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Apr 30th, 2006, 7:27 AM   #3
gupta.awadhesh
Newbie
 
Join Date: Apr 2006
Posts: 11
Rep Power: 0 gupta.awadhesh is on a distinguished road
i want to pick data from text boxes and labels on a web page. the web page can be of any web site. For exampla, there is log in page of a site, it has a text box to key in the username, i want to pick that value thru code.
__________________
RegardsAwadhesh
gupta.awadhesh is offline   Reply With Quote
Old May 1st, 2006, 12:10 AM   #4
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,193
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by gupta.awadhesh
i want to pick data from text boxes and labels on a web page. the web page can be of any web site. For exampla, there is log in page of a site, it has a text box to key in the username, i want to pick that value thru code.
Ah. Well, I think you're going to find this harder than you might expect. Those buttons, text boxes, combo boxes, and other such things are generally part of 'web forms'. The user can fill them in, and then when they are done, they let their browser know (typically by clicking a 'submit' button, or something similar) that they wish to send the data to the server (usually, though it can also be processed by client-side scripts) for processing.

The trick is, the destination is coded as part of the web page. When the user submits the form, the browser submits it to the appropriate party, generally the server where the page is located. It can send the data as part of the URL, or as part of the request header (or whatever it's called; HTTP isn't my forte). The remote end accesses this information in different ways, depending on a) the server in question, and b) the method used to process requests. For example, ASP might access these values by reading properties, whereas for CGI, you might read them by getting environment variables. You won't be able to do it client-side without using client-side scripting (like Javascript), and even then, you'd need to rewrite the HTML to do this.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old May 1st, 2006, 12:14 AM   #5
gupta.awadhesh
Newbie
 
Join Date: Apr 2006
Posts: 11
Rep Power: 0 gupta.awadhesh is on a distinguished road
Thanks for the prompt reply but i was not looking for what you have told. Let me explain what i want to do via an example. Lets say there is a web form that has been filled by a user. the submit button has not been clicked yet and the data can be visibly seen at the moment. Using a VB code, i want to pick up that data in the respective fields with their labels text. If this is possible, plz reply back with the answer asap.

Thanks.
__________________
RegardsAwadhesh
gupta.awadhesh is offline   Reply With Quote
Old May 7th, 2006, 1:53 AM   #6
gupta.awadhesh
Newbie
 
Join Date: Apr 2006
Posts: 11
Rep Power: 0 gupta.awadhesh is on a distinguished road
Plzzz reply

strange!!! no one knows the answer... wat u guys doing here!!! shame on all of you...
__________________
RegardsAwadhesh
gupta.awadhesh is offline   Reply With Quote
Old May 7th, 2006, 4:18 AM   #7
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,193
Rep Power: 5 lectricpharaoh will become famous soon enough
You might want to read up on 'shatter attacks' in Windows. These exploit the Win32 message system, whereby you can send messages to various windows (including edit boxes, buttons, etc), even if those windows are owned by a process other than yours. By exploiting this, you can compromise Windows. How does this help you? Well, this page explains how to get the handles for these other windows, and you can then use Windows messages and/or functions to query them as to their window text.
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old May 7th, 2006, 8:59 AM   #8
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Quote:
Originally Posted by gupta.awadhesh
strange!!! no one knows the answer... wat u guys doing here!!! shame on all of you...
Not all of us check the forums every single hour. I know it's hard to believe, but most of us do have lives.

As lectricpharoah said, you'll need to use the Win32 messaging subsystem. To do this in Visual Basic, you'll need to use functions that are not available by default. To use them, you'll need to tell VB how to access these functions. Finding out the code is pretty difficult work, so the nice people at ActiveVB made ApiViewer, which should help muchly.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old May 7th, 2006, 9:01 AM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
wat u guys doing here!!! shame on all of you...
Well, we're not trying to rip someone off, and we're not whining because free help isn't running to schedule. Have you ever been advised about the rolling doughnut thangy?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old May 8th, 2006, 12:06 AM   #10
brownhead
Programmer
 
Join Date: Mar 2006
Location: California
Posts: 37
Rep Power: 0 brownhead is on a distinguished road
Send a message via AIM to brownhead Send a message via MSN to brownhead
This may be what you said.. but couldln't you enumerate all the windows that are currently open and then check each window's class to see if it matches with the internet explorer class then if it mathes run another enumeration of all the child windows (I'm pretty sure text boxes count as child windows... though I'm not positive) then get the value of all the text boxes? You may need to do a little bit more filtering but I think you could pretyt much do what your asking with that...
brownhead is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:09 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC