-
Dec 12th, 2017, 12:29 PM
#1
Thread Starter
Junior Member
is possible to edit some words in webbrowser page ? ? ?
hello
my program is navigate to some website via webbrowser control
but i want to add button that replace some words in that website source
is it possible ? and how
the code please ?
-
Dec 12th, 2017, 12:30 PM
#2
Re: is possible to edit some words in webbrowser page ? ? ?
Depends on the site and what it is you want changed... It may or may not be possible.
-tg
-
Dec 12th, 2017, 12:56 PM
#3
Thread Starter
Junior Member
Re: is possible to edit some words in webbrowser page ? ? ?
i just want to edit some codes in the source
i try to use this code
WebBrowser1.DocumentText = Replace(WebBrowser1.DocumentText, TextBox1.Text, TextBox2.Text)
but its give me white page with words without style :/
-
Dec 12th, 2017, 01:04 PM
#4
Re: is possible to edit some words in webbrowser page ? ? ?
Again, it depends on the site and what you're trying to replace... if I had to guess, you replaced something in the sytles that broke it.
-tg
-
Dec 12th, 2017, 01:13 PM
#5
Thread Starter
Junior Member
Re: is possible to edit some words in webbrowser page ? ? ?
no its not in the style
its after <script> tag
this is the code
$(function () {
$("#slides").slides({
play: 4000,
crossfade: true,
effect: 'slide',
hoverPause: false,
slideEasing: "easeInCubic",
fadeEasing: "easeOutQuad",
slideSpeed: 600,
fadeSpeed: 500,
pagination: false,
generatePagination: false
});
i want to replace slideSpeed: 600,
to
slideSpeed: 300,
-
Dec 13th, 2017, 10:32 AM
#6
Re: is possible to edit some words in webbrowser page ? ? ?
That's javascript, and you are trying to replace a property. If you managed to do this, you'd then have to run the JS, or else you really haven't done anything. Whether or not that would even work, I couldn't say, but I would guess not.
My usual boring signature: Nothing
-
Dec 13th, 2017, 12:11 PM
#7
Re: is possible to edit some words in webbrowser page ? ? ?
Yeah, it wouldn't work. The problem is that by the time you're able to "replace" it... it's already run... so event after replacing it, it really wouldn't do any good.
-tg
-
Dec 13th, 2017, 01:18 PM
#8
Thread Starter
Junior Member
Re: is possible to edit some words in webbrowser page ? ? ?
thanks to all u helped me
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
|