Results 1 to 8 of 8

Thread: Getting data from a web page

  1. #1

    Thread Starter
    Frenzied Member JungleMan's Avatar
    Join Date
    Feb 2001
    Posts
    2,033

    Getting data from a web page

    I want to retrieve data from a TEXTAREA on a web page named "message". How can I do this?
    I'm bringing geeky back...

  2. #2
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    So you want to get data from a TEXTAREA of a web-page as it's being typed?

  3. #3

    Thread Starter
    Frenzied Member JungleMan's Avatar
    Join Date
    Feb 2001
    Posts
    2,033
    I think I'm just going to need it done when I click a button, but that would be nice too.

    Do you have any idea how to do that?
    I'm bringing geeky back...

  4. #4
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    put the textarea object within a <FORM></FORM>
    then use the method =POST
    and when you need to retrieve it
    use myMessage = Request.Form("message")
    you need to know asp to do this well

  5. #5

    Thread Starter
    Frenzied Member JungleMan's Avatar
    Join Date
    Feb 2001
    Posts
    2,033
    Could I possibly have some actual code if it isn't too big? Because I'm confused.
    I'm bringing geeky back...

  6. #6
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    When you say click a button....do you mean click a button on a web-page? If you do take a look at these links for trapping events of elements within a web-page (Demo-Code included).

    http://msdn.microsoft.com/workshop/b...ls/forward.asp
    http://support.microsoft.com/support.../Q246/2/47.asp

  7. #7

    Thread Starter
    Frenzied Member JungleMan's Avatar
    Join Date
    Feb 2001
    Posts
    2,033
    I mean clicking a button in my VB application, not on the web page. For example, if this text were being typed right now in my WebBrowser control, I could click a button or something on the VB Application, and it would "capture" this text and display it inside the VB app, so I could save it or whatever.
    I'm bringing geeky back...

  8. #8
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    Try something like this...

    Code:
    Private Sub Command1_Click()
    If WebBrowser1.Busy = True Then Exit Sub
    
        mesString = WebBrowser1.Document.All("message").Value
        'Save message CODE here
    
    End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width