Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Communications > Reading... a web page.


Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2005, 01:36 AM
Unspecified Unspecified is offline
Newcomer
 
Join Date: Jul 2005
Posts: 3
Default


Regarding this, quick question for anyone who can help. I've been searching for the past two hours or more looking for a layout of the DOM(as I believe it's called). I really need very specific information, and W3C just isn't cutting it. This topic is about as close as I've found....
Anyway, I need to extract the source out of a page I bring up using the internet controls ocx. This will work best as I need to modify it before its displayed. I guess I could use the internet transfer control, but for the overall layout of the program having some type of table listing all of the, for example, WebBrowser1.document.everything-else properties would be awesome. The MSDN didn't help much either as they don't really go into detail of the other properties below the Document level. I know its possible cause I've done it before, but for the life of me I can't remember the property. I thought it was document.body, but that doesn't give the right results. Any idea where I can at least find a good, very specific listing of every property/method for this control. I'm begining to hate DOM LOL
BTW, Nice avitar Tarh. If you haven't yet, be sure to check out Bleach, fansubbed by Lunar. Thanks for any help you can provide!

Last edited by lebb; 07-29-2005 at 09:13 AM. Reason: Split to separate thread; please start your own threads rather than hijacking other members'. Thanks.
Reply With Quote
  #2  
Old 07-29-2005, 12:38 PM
MikeJ's Avatar
MikeJ MikeJ is offline
Retread

Retired Moderator
* Expert *
 
Join Date: Sep 2002
Location: Austin, Texas
Posts: 6,742
Default

Well, I'd say MSDN. Cause that's where I found it. However, BrainJar has a good reference that actually explains what it does. (Ref: http://www.brainjar.com/dhtml/intro/)
__________________
{ Lex Fori } { Locus Classicus } { Rutilus Scrinium }
Osculare pultem meam!
Reply With Quote
  #3  
Old 07-29-2005, 02:51 PM
Unspecified Unspecified is offline
Newcomer
 
Join Date: Jul 2005
Posts: 3
Default

Well, thanks for your reply, but thats still not quite what im looking for. I need some type of expanded tree showing all the properties under the Microsoft Internet Control, SHDOCVW.DLL 6.0.2737.800(though version im sure doesn't matter). I understand how to use the properties, its just that I need some type of listing of them down to their last level. Something like:

document.body
document.body.all
document.body.all.stuffunderthis
document.items etc..

I did find this:
http://img.photobucket.com/albums/v4...d/vb5fig05.gif
but its not near complete enough. If anything else, does anyone know how to extract the source of the document after the page is loaded into the WebBrowser1 control? I guess thats all I need, but a full listing would be excellent. Thanks again!
Reply With Quote
  #4  
Old 07-29-2005, 02:56 PM
MikeJ's Avatar
MikeJ MikeJ is offline
Retread

Retired Moderator
* Expert *
 
Join Date: Sep 2002
Location: Austin, Texas
Posts: 6,742
Default

This one comes with JavaScript objects included, but it's the most complete one I've found:
http://www.dannyg.com/dl/JSB5RefBooklet.pdf
__________________
{ Lex Fori } { Locus Classicus } { Rutilus Scrinium }
Osculare pultem meam!
Reply With Quote
  #5  
Old 07-29-2005, 05:20 PM
Unspecified Unspecified is offline
Newcomer
 
Join Date: Jul 2005
Posts: 3
Default

Thanks again there MikeJ. That does help some! I think that for now im just gonna do it different than what I had planned, using the transfer controls. I'm just gonna load it, change it, then have the browser load up the changed temp file.
So, im doing this for automation of filling in a form somewhere. How would I go about activating the "Submit" button using these commands?
Reply With Quote
  #6  
Old 07-29-2005, 05:24 PM
NateO's Avatar
NateO NateO is offline
Excellent…

Forum Leader
* Expert *
 
Join Date: Jun 2004
Location: Minneapolis MN - deceased
Posts: 2,483
Default

Hello,

See the following:
http://www.xtremevbtalk.com/showthread.php?t=218825

My first response links to an example of clicking a 'Submit' button.

This post is an example of grabbing values from a Table in a Document:
http://www.xtremevbtalk.com/showthread.php?p=973120

Note the use of 'Submit' there, versus clicking a button, to submit the form.
__________________
Regards,
Nate Oliver
Microsoft Excel MVP

Last edited by NateO; 07-29-2005 at 05:41 PM.
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
 
 
-->