Hallo
Ich möchte eine bestimmte div einer seite in eine rtb kopieren. Das ganze soll mit einem Button Click funtionieren. Zur Seite navigieren funktioniert schon mal aber ich kann den Quellcode nicht auslesen. Hat jemand eine Idee?
Spoiler anzeigen
Das ist alles was ich bis jetzt habe
Spoiler anzeigen
<div id="text_todo">
<span id="actualLetter">a</span>
<span id="remainingText">aa aaa sss sss ddd ddd fff fff jjj jjj kkk kkk lll lll ööö ööö asd sdf dfj fjk jkl klö asdf jklö asdf jklö asdf jklö asdf jklö ölkj fdsa asdf jklö asas dfdf jkjk lölö ölkj asdf fdsa ölkj jklö asdf jklö dsds ölkl assa ölkj asdf jklö asdf jklö ölkj fdsa ölkj asdf dfdf jkjk ölöl asas jklö asdf jklö ölkj asdf jkjk lklö jklö assd jklö fdsd asdj klja jskd ölkj asjs lklö asdf jkjd löld fdsö ölkj asdf jklö asdf jklö asdf jklö asdf jklö ölkj fdsa asdf jklö ölkj fdsa asdf jklö asdf jklö asdf jklö asdf</span>
</div>
in dieser Div müsste dann die span "remaining text" bis /span ausgelesen werden.
Danke und LG
Ich möchte eine bestimmte div einer seite in eine rtb kopieren. Das ganze soll mit einem Button Click funtionieren. Zur Seite navigieren funktioniert schon mal aber ich kann den Quellcode nicht auslesen. Hat jemand eine Idee?
VB.NET-Quellcode
- Private WithEvents webBrowser1 As New WebBrowser
- Private Sub Navigate(ByVal address As String)
- If String.IsNullOrEmpty(address) Then Return
- If address.Equals("about:blank") Then Return
- If Not address.StartsWith("http://") And _
- Not address.StartsWith("https://") Then
- address = "http://" & address
- End If
- Try
- webBrowser1.Navigate(New Uri(address))
- Catch ex As System.UriFormatException
- Return
- End Try
- End Sub
- Private Sub webBrowser1_Navigated(ByVal sender As Object, _
- ByVal e As WebBrowserNavigatedEventArgs) _
- Handles webBrowser1.Navigated
- txtURL.Text = webBrowser1.Url.ToString()
- End Sub
- Private Sub btnStart_Click( _
- ByVal sender As Object, ByVal e As EventArgs) _
- Handles btnSearch.Click
- Navigate(txtURL.Text)
- End Sub
Das ist alles was ich bis jetzt habe
<div id="text_todo">
<span id="actualLetter">a</span>
<span id="remainingText">aa aaa sss sss ddd ddd fff fff jjj jjj kkk kkk lll lll ööö ööö asd sdf dfj fjk jkl klö asdf jklö asdf jklö asdf jklö asdf jklö ölkj fdsa asdf jklö asas dfdf jkjk lölö ölkj asdf fdsa ölkj jklö asdf jklö dsds ölkl assa ölkj asdf jklö asdf jklö ölkj fdsa ölkj asdf dfdf jkjk ölöl asas jklö asdf jklö ölkj asdf jkjk lklö jklö assd jklö fdsd asdj klja jskd ölkj asjs lklö asdf jkjd löld fdsö ölkj asdf jklö asdf jklö asdf jklö asdf jklö ölkj fdsa asdf jklö ölkj fdsa asdf jklö asdf jklö asdf jklö asdf</span>
</div>
in dieser Div müsste dann die span "remaining text" bis /span ausgelesen werden.
Danke und LG
Projekte