Hello,
I have a web page with a form.
I load it in a webview object.
How can we change the value of a field ?
This is my HTML code of my form :
I load it in an webview objet (zoneweb is the name of my webview objet)
zoneweb.LoadUrl("http://www.mydomaine.fr/my-html-form.html")
I want to assign a value in the 3 fields : contact_name, contact_fname and contact_mail
Equivalent to (in JS) : document.form[0].getElementByName('contact_name').value = 'Alfred';
And after I would submit the form for the script action.php either call in webview.
Equivalent to (in JS) : document.form[0].submit();
Thank you for your help.
I have a web page with a form.
I load it in a webview object.
How can we change the value of a field ?
This is my HTML code of my form :
HTML:
<form action="action.php">
<input type="text" name="contact_name" value="" />
<input type="text" name="contact_fname" value="" />
<input type="text" name="contact_mail" value="" />
<input type="submit" value"GO" />
</form>
I load it in an webview objet (zoneweb is the name of my webview objet)
zoneweb.LoadUrl("http://www.mydomaine.fr/my-html-form.html")
I want to assign a value in the 3 fields : contact_name, contact_fname and contact_mail
Equivalent to (in JS) : document.form[0].getElementByName('contact_name').value = 'Alfred';
And after I would submit the form for the script action.php either call in webview.
Equivalent to (in JS) : document.form[0].submit();
Thank you for your help.