|
-
July 14th, 1999, 11:45 PM
#1
How Can I get an Element from a html file,which I using Scriptlet control to link it.
In my vb application,I want to get a tag from a http file.So I use Scriptlet control,it can get the web,but I cann't control the tag which in the http file.
Thanks for any suggestion!
-
July 15th, 1999, 02:08 AM
#2
Re: How Can I get an Element from a html file,which I using Scriptlet control to link it.
you don't need the scriptlet control, but you need the webbrowser control and mshtml.dll (reference) to reference the DOM.
then code like this
private Sub Command2_Click()
w.Navigate "http://yoururl"
End Sub
private Sub w_DocumentComplete(byval pDisp as Object, URL as Variant)
Dim d as HTMLDocument
set d = w.Document
' to get an attribute of a certain HTML element
d.all.t.tagName ' gets tagName of element with id "t"
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|