is possible to edit some words in webbrowser page ? ? ?-VBForums
Results 1 to 8 of 8

Thread: is possible to edit some words in webbrowser page ? ? ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2013
    Posts
    22

    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 ?

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    31,337

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2013
    Posts
    22

    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 :/

  4. #4
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    31,337

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2013
    Posts
    22

    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,

  6. #6
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    31,292

    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

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    31,337

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Feb 2013
    Posts
    22

    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
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.