July 14th, 1999, 11:45 PM
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!
Thanks for any suggestion!
|
Click to See Complete Forum and Search --> : How Can I get an Element from a html file,which I using Scriptlet control to link it. July 14th, 1999, 11:45 PM 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! Lothar Haensler July 15th, 1999, 02:08 AM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |