Welcome Guest Search | Active Topics | Sign In | Register

WebControl Options
SolSupp
Posted: Wednesday, November 21, 2018 7:02:54 AM
Rank: Newbie
Groups: Member

Joined: 11/21/2018
Posts: 1
Lookin for events that webbrowser control uses ie DocumentComplete, does Webcontrol have these and I also need to replace tags, with images after document has loaded, is this possible ie:


Dim theElementCollection As Windows.Forms.HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("img")

For Each curElement As Windows.Forms.HtmlElement In theElementCollection

Dim controlName As String = curElement.GetAttribute("src").ToString

If Microsoft.VisualBasic.Left(controlName, 5) = "http:" Or Microsoft.VisualBasic.Left(controlName, 6) = "https:" Then
curElement.SetAttribute("src", controlName)
Else
controlName = controlName.Remove(0, 4)
curElement.SetAttribute("src", fnGetIncomingEmailImage(controlName, myID, myProject))
End If


Next
eo_support
Posted: Wednesday, November 21, 2018 10:31:03 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

The corresponding event is this event on EO.WebBrowser:

https://www.essentialobjects.com/doc/eo.webbrowser.webview.loadcompleted.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.