Dec 4th, 2007, 03:00 PM
#1
Thread Starter
Addicted Member
[RESOLVED] How to split string(In HTML page)
Hi,
How can i split(Get) value from this tag: NewAccountURL
HTML CODES... <input type="hidden" id="NewAccountURL" value="https://www.google.com/accounts/captcha?ctoken=X_FXnPu9weJb3Akn7Y9_bZmWuKP3MNdslPpg" name="NewAccountURL"> HTML CODES...
Thanks .
Dec 4th, 2007, 07:52 PM
#2
Re: How to split string(In HTML page)
Research on using DOM objects in VB, eg. HTMLDocument object.
Dec 4th, 2007, 08:29 PM
#3
Re: How to split string(In HTML page)
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Dec 4th, 2007, 10:53 PM
#4
Re: How to split string(In HTML page)
Originally Posted by
RobDog888
Is that your fav thread RobDog?
Dec 5th, 2007, 07:38 AM
#5
Re: How to split string(In HTML page)
Originally Posted by
lintz
Is that your fav thread RobDog?
Yes It shows at least two different ways to access a webpages source.
VB/Office Guru™ (AKA: Gangsta Yoda ™ ® )
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
Dec 4th, 2007, 08:50 PM
#6
Junior Member
Re: How to split string(In HTML page)
hi,
please open new project and apply following code
add a web browser control in your form (change name: w)
add references Microsoft HTML Object Library
and add 4 Command Button.
Code Here:
vb Code:
Dim WithEvents doc As HTMLDocument
Private Sub Command1_Click()
MsgBox "Element Value : " & vbNewLine & doc.getElementById("NewAccountURL").Value
End Sub
Private Sub Command2_Click()
MsgBox "Element Name : " & vbNewLine & doc.getElementById("NewAccountURL").Name
End Sub
Private Sub Command3_Click()
MsgBox "Element Line : " & vbNewLine & doc.getElementById("NewAccountURL").outerHTML
End Sub
Private Sub Command4_Click()
MsgBox "Element TagName : " & vbNewLine & doc.getElementById("NewAccountURL").tagName
End Sub
Private Sub Command5_Click()
MsgBox "Element Type : " & vbNewLine & doc.getElementById("NewAccountURL").Type
End Sub
Private Sub Form_Load()
w.Navigate App.Path & "\testPage.html"
End Sub
Private Sub w_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
Set doc = w.Document
End Sub
demo project include...
Note: sorry for bad english...
Attached Files
Dec 5th, 2007, 04:26 AM
#7
Thread Starter
Addicted Member
Re: How to split string(In HTML page)
Very thanks all , also KanKi.
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