I want to retrieve data from a TEXTAREA on a web page named "message". How can I do this?
Printable View
I want to retrieve data from a TEXTAREA on a web page named "message". How can I do this?
So you want to get data from a TEXTAREA of a web-page as it's being typed?
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?
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
Could I possibly have some actual code if it isn't too big? Because I'm confused.
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
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.
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