capturing codes
capturing codes
capturing codes
capturing codes
capturing codes
capturing codes capturing codes capturing codes capturing codes capturing codes capturing codes capturing codes capturing codes
capturing codes capturing codes
capturing codes
Go Back  Xtreme Visual Basic Talk > > > capturing codes


Reply
 
Thread Tools Display Modes
  #1  
Old 07-17-2002, 03:36 AM
Genna
Guest
 
Posts: n/a
Default capturing codes


is there any ways to obtain the values in the webpage, eg.
when the browser loads the page, the values are listed.
I want to capture the values.
I suppose that you know about the background code, the one you can get by right clicking and view source in the the browser.
It is opened in textbox. Is there anyways to obtain that values?
Reply With Quote
  #2  
Old 07-17-2002, 04:20 AM
Flyguy's Avatar
Flyguycapturing codes Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,163
Default

You mean the source of the webpage (HTML) ?
Reply With Quote
  #3  
Old 07-17-2002, 11:23 AM
ChiefRedBull's Avatar
ChiefRedBullcapturing codes ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default

Use the Inet control, and it's OpenURL method.
Code:
strHTML = Inet1.OpenURL ("www.winsockvb.com")
__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
  #4  
Old 07-17-2002, 07:11 PM
Genna
Guest
 
Posts: n/a
Default

hmm dont i have to add some reference for inet???
I am still checking the object
yes, it is the source of the HTML file.
You should get some coding like

<HTML>
<HEAD>
.
.
.
and so on
i want to put the format and exact wordings of the file
I think i know how to transfer strings but not opening that kinda file
Reply With Quote
  #5  
Old 07-17-2002, 07:13 PM
Genna
Guest
 
Posts: n/a
Default

sorry i couldnt find the reference
hopefully you can tell which reference to add :>
Reply With Quote
  #6  
Old 07-17-2002, 07:35 PM
Squirm's Avatar
Squirmcapturing codes Squirm is offline
Political Coder

Retired Moderator
* Guru *
 
Join Date: Mar 2001
Location: London, England
Posts: 8,037
Default

Project --> Components --> Microsoft Internet Transfer Control

__________________
Search the forums | Use [vb][/vb] tags | Still IRCing
Reply With Quote
  #7  
Old 07-17-2002, 07:49 PM
Genna
Guest
 
Posts: n/a
Default

it works
but dont i have to close the object??
something like kill, set to nothing??
coz the exiting seems very very slow
Reply With Quote
  #8  
Old 07-17-2002, 07:51 PM
Genna
Guest
 
Posts: n/a
Default

sorry bad habit of mine
thanx squirm and chiefRedbull
Reply With Quote
  #9  
Old 07-17-2002, 07:53 PM
Squirm's Avatar
Squirmcapturing codes Squirm is offline
Political Coder

Retired Moderator
* Guru *
 
Join Date: Mar 2001
Location: London, England
Posts: 8,037
Default

Well, you could Set it to Nothing, but thats basically what it does when you unload the parent form anyway... I've not noticed any significant slowdown when using this control.
__________________
Search the forums | Use [vb][/vb] tags | Still IRCing
Reply With Quote
  #10  
Old 07-17-2002, 07:55 PM
Genna
Guest
 
Posts: n/a
Default

well, mine does
it does so well for the first time
then after a while, just keep clicking slows it down considerable
Reply With Quote
  #11  
Old 07-17-2002, 08:00 PM
Genna
Guest
 
Posts: n/a
Default

hmmmm!
i put it as
Code:
Set Inet1.OpenURL("") = Nothing
it doesnt seems to work
Reply With Quote
  #12  
Old 07-17-2002, 08:01 PM
Squirm's Avatar
Squirmcapturing codes Squirm is offline
Political Coder

Retired Moderator
* Guru *
 
Join Date: Mar 2001
Location: London, England
Posts: 8,037
Default

Clicking on what?
__________________
Search the forums | Use [vb][/vb] tags | Still IRCing
Reply With Quote
  #13  
Old 07-17-2002, 08:04 PM
Genna
Guest
 
Posts: n/a
Default

geez also there is a bug about 4 sec later
Reply With Quote
  #14  
Old 07-17-2002, 08:05 PM
Genna
Guest
 
Posts: n/a
Default

well, hmmm there is a cmdbutton where i click so that it will obtain the codes for the client
Reply With Quote
  #15  
Old 07-17-2002, 08:08 PM
Genna
Guest
 
Posts: n/a
Default

it is working but i think it is really slow
but at least it is better than nothing...i hope there is a faster method coz when we write the reports, there is lot of deadlines
Reply With Quote
  #16  
Old 07-17-2002, 11:20 PM
Genna
Guest
 
Posts: n/a
Default

yo, sorry about this
though it is working, it is not working as i would have like it to be.
I want to get the whole thing but the problem is that it is only getting about 80%of the page.
Is there anyways to get 100% of the page???
Reply With Quote
  #17  
Old 07-18-2002, 03:00 AM
darkk
Guest
 
Posts: n/a
Default

The best way to get the HTML code when the page is not in Frames is this:

text1.text = WebBrowser1.Document.documentElement.outerHTML

you will have to add a webbrowser to your program but you can always make it invisible.
Reply With Quote
  #18  
Old 07-18-2002, 03:06 AM
Banjo's Avatar
Banjocapturing codes Banjo is offline
Hell's Angel

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Yorkshire, UK
Posts: 10,394
Post

That may be the easiest way, but IMHO the best way is to use the Internet API.
__________________
A wise one man once said "what you talking about dog breath"
Reply With Quote
  #19  
Old 07-18-2002, 03:35 AM
Genna
Guest
 
Posts: n/a
Default

thanx for your help,
the internet api is more efficient i guess
i just realized that the textboxes do have a limit of 56K chars even when the propertiy maxlength are set to 0
Reply With Quote
  #20  
Old 07-18-2002, 03:56 AM
Banjo's Avatar
Banjocapturing codes Banjo is offline
Hell's Angel

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Yorkshire, UK
Posts: 10,394
Post

Umm, when the maxlength property is zero a textbox by definition has a 0k limit.
__________________
A wise one man once said "what you talking about dog breath"
Reply With Quote
Reply


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 Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
capturing codes
capturing codes
capturing codes capturing codes
capturing codes
capturing codes
capturing codes capturing codes capturing codes capturing codes capturing codes capturing codes capturing codes
capturing codes
capturing codes
 
capturing codes
capturing codes
 
-->