Hi,
I want to prefill a form on a web page.
I created a form with a webbrowser1 on it. Navigated to the site. Worked in the sub Document completed. So no beginning problem.
I can change simple textboxs on the web page.
Looking at the source of the html for example I have
<input type="text" name="name" value="" maxlength="25" tabindex=1>
VB Code:
Dim mobius As System.Windows.Forms.HtmlDocument = Me.WebBrowser1.Document mobius.All("name").OuterText = "Stephen"
Perfect.... It works...
Now the problem is there is a TextArea on this form that has source:
<textarea name="message" cols=65 rows=15 wrap=virtual tabindex=4 tindex=4></textarea>
<script language="javascript" src="/textarea/editor.js"></script>
<script language="javascript"><!--
var config = new Object();
config.toolbar = [........
..... ];
editor_generate('message', config); --></script>
I tried the obvious with the name="message" as
VB Code:
mobius.All("message").OuterText = "Once upon a Time..."
But it didn't put it in the textarea, and gave me a script error (yes/no).
Is there any way to add text programatically to textareas much like this one with all the buttons and smilies?"
'




Reply With Quote