VB App read html code


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: VB App read html code

  1. #1
    Join Date
    Jan 2005
    Location
    montreal
    Posts
    40

    Question VB App read html code

    When i load a basic Html page in the web browser inside a vb6 desktop app.
    Does VB script can read and modify the html code localy, or its only the web browser who can read it.

    If yes, can someone tell me the basic line how.
    Not the code - only the idea to understand.
    Maybe later ill need the code, but at this point, i just try plan the complete
    project.

    Thank

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Can you explain in more detail what you're trying to do? Are you loading an HTML file from the local file system, or are you downloading a file from the Web? What do you want to do with the page after it's loaded in the browser control?
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Jan 2005
    Location
    montreal
    Posts
    40
    The Application will use to download specific web page and all picture (Save AS) - From Business Intranet and give to non-initiate-user the tool to modify it.
    Not only modify but compare and see the last change made from the last user.
    At the end of the line. The application will upload the web page to be publish on a WWW Server.

    The app will transform itself by reading code in top of the WEB page
    The app will restrain user to a only specific HTML change by reading same code

    So, same question - Can i Open Web page in (Web browser) Save it all localy (with all picture)
    and modify it by VB, and return it, in specific central server

    if yes - what is the way to figure out

    Thanks

  4. #4
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    You may use the Internet Transfer Control or WinInet APIs to download files (HTML and images) from a Web server. If you have FTP access to the Web server, you may use the same means (Internet Transfer Control or WinInet APIs) to upload files via FTP. None of this really has anything to do with the Web browser control; the browser is for viewing files, not downloading or uploading them.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  5. #5
    Join Date
    Jan 2005
    Location
    montreal
    Posts
    40
    Ok for that part - But my concern its the interaction between vb app and the web page - The way i think is to download and save the page and edit it like a text file by vb and view by browser -
    can i use VB like text editor (search - replace - copy - paste) ??

  6. #6
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Yes. I would probably use a third-party HTML editing component, rather than trying to write the code from scratch. Google for "html editor ocx" to find several alternatives.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  7. #7
    Join Date
    Jan 2005
    Location
    montreal
    Posts
    40
    the goal to write the app, is to restrain to a specific change the user can made.
    the acces will be very reduce and the change will be minor - just like the little window that im typing this post in this forum - The type of user will be very large from secretary to back store worker.

    Ok thanks
    i just want to know what is the main idea to modify the html from VB

Similar Threads

  1. Re: Writer's Uninformed Statements
    By Rich in forum .NET
    Replies: 38
    Last Post: 09-07-2001, 05:55 PM
  2. Replies: 120
    Last Post: 08-06-2001, 12:50 AM
  3. Self-Interest & VS.NET
    By Zane Thomas in forum .NET
    Replies: 147
    Last Post: 01-31-2001, 01:00 PM
  4. Aivosto VB Watch profiles code
    By Aivosto in forum vb.announcements
    Replies: 0
    Last Post: 09-25-2000, 02:02 PM
  5. Replies: 1
    Last Post: 05-30-2000, 01:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center