That has a lot to do with all the other browse mode verbosity options. If you query the number of lines on google, you get something like 45. But if you turn on every announce "blah" verbosity option you have, turn of all the smart "blah" options you have, then get the number of lines, you'll come up with something like 86. A lot of those lines are internal Window-Eyes lines, so it makes sense that you can't get a DOMNode from them.

Aaron

Jeff Bishop wrote:
Why are so many lines marked as nothing?
----- Original Message ----- From: "Aaron Smith" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, July 29, 2008 8:56 AM
Subject: Re: DOMNode property


Here's what I get in Immed with Google in my Browse Mode buffer:

For Each line in BrowseMode.Lines : print line & " (" & typename(line.DOMNode) & ")" : Next
 (Nothing)
 (Nothing)
Web (Object)
Images (Object)
Maps (Object)
News (Object)
Shopping (Object)
Gmail (Object)
more ? (Object)
 (Nothing)
 (Nothing)
Video (Object)
Groups (Object)
Books (Object)
Scholar (Object)
Finance (Object)
Blogs (Object)
 (Nothing)
 (Nothing)
YouTube (Object)
Calendar (Object)
Photos (Object)
Documents (Object)
Reader (Object)
Sites (Object)
 (Nothing)
 (Nothing)
even more » (Object)
 (Nothing)
 (Nothing)
iGoogle (Object)
 | (Object)
Sign in (Object)
 (Nothing)
 (Nothing)
 (Nothing)
50th Anniversary of NASA (Object)
f (Nothing)
 (Nothing)
 (Nothing)
 (Nothing)
 (Nothing)
 (Nothing)
 (Nothing)
 (Object)
Google Search (Object)
I'm Feeling Lucky (Object)
 (Nothing)
 (Nothing)
 (Nothing)
Advanced Search (Object)
Preferences (Object)
Language Tools (Object)
 (Nothing)
 (Nothing)
 (Nothing)
 (Nothing)
# (Object)
 (Nothing)
 (Nothing)
Get a Google-enhanced search box (Object)
intl/en-GB/images/toolbar_sm.png (Object)
 (Nothing)
 (Nothing)
 (Nothing)
images/dl_btn_left.gif (Object)
 (Nothing)
 (Nothing)
 (Nothing)
Download Google Toolbar (Object)
 (Nothing)
 (Nothing)
images/dl_btn_right.gif (Object)
 (Nothing)
 (Nothing)
 (Nothing)
 (Nothing)
Advertising Programs (Object)
 - (Object)
Business Solutions (Object)
 - (Object)
About Google (Object)
 (Nothing)
 (Nothing)
 (Nothing)
©2008 - (Object)
Privacy (Object)
 (Nothing)
 (Nothing)
 (Nothing)

Aaron

Jamal Mazrui wrote:
Thanks for the sample code, Aaron.  Should I be able to query the
DOMNote property in the immediate window (invoked from IE)?  I tried the
following code:

For Each oLine in BrowseMode.Lines : Print TypeName(oLine.DOMNode) : Next

I got "Nothing" for each line.

Jamal
On
Mon, 28 Jul 2008, Aaron Smith wrote:

Date: Mon, 28 Jul 2008 15:58:40 -0400
From: Aaron Smith <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: DOMNode property

I use this example to get DOMNodes from a given page when the BrowseMode
buffer changes. I'll warn you ahead of time -- it's slower than my
grandmother running through molasses (because of the output debug):

ConnectEvent BrowseMode, "OnStateChange", "BrowseModeStateChange"

Sub BrowseModeStateChange(bmState)
OutputDebugString "Browse Mode State Change: " & bmState & vbCrLf
On Error Resume Next
If bmState = bmsActive Then
' Get the URL of the active browse mode buffer
Dim bmLines : Set bmLines = BrowseMode.Lines
If Not bmLines Is Nothing Then
If bmLines.Count > 0 Then
Dim bmLine
For Each bmLine In bmLines
If Not bmLine.DOMNode Is Nothing Then
Set dn = bmLine.DOMNode
OutputDebugString "Found one! " & bmLine.Index & ": " &
dn.nodeName & " = " & dn.nodeType & " = " & dn.nodeValue & vbCrLf
End If
Next
End If
Set bmLines = Nothing
End If
End If

On Error GoTo 0
End Sub

DOMNodes are beastly little creatures that, after an extended period of
exposure, can cause you to strike the person next to you with a blunt
object. I strongly recommend coding them, alone, or at least while
you're sitting next to Mike.

Aaron

Jamal Mazrui wrote:
Testing with the Immediate Window script, this property seems to return Nothing for every BrowseMode line. The scripting documentation refers me
to MSDN, but can we have at least one example of using the DOMNode
property?

Jamal

--
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support & Web Development



--
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support & Web Development



--
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.

Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support & Web Development

Reply via email to