Login Webforms Httpsockets

Hi, I am trying to find a way to login to a website using XOJO.
I have been searching for examples but I only found for Vb


[code]Private Sub Command1_Click()
WebBrowser1.Document.All(“login_email”).Value = Email.Text
WebBrowser1.Document.All(“login_pass”).Value = Password.Text
End Sub

Private Sub Form_Load()
WebBrowser1.Silent = True
WebBrowser1.Navigate (“http://www.mediafire.com/”)
End Sub[/code]
Video URL

Is there an alt version for Xojo?

How do i get webforms elements pass into my desktop application and show the logged in website?


You would need to have a HTMLViewer and in your button’s .Action event you can make calls to the HTMLViewer via the .ExecuteJavaScript method…

Button’s .Action event

HTMLViewer1.LoadURL "http://www.mediafire.com/"

HTMLViewer’s .DocumentComplete event

me.ExecuteJavascript "document.GetElementById(""login_email"").SetAttribute(""value"", """ + self.Email.Text + """);"