Android Question WebExtras.ExecuteJavaScript element

Cableguy

Expert
Licensed User
Longtime User
Hi guys

My java knowledge is still near 0...
So I need to fill this form name and password values using executejavascript...
All I know is that my script should start with 'Document ... and I freeze just there...
Note: this is part of an actual web based form, not full form


B4X:
<form name="login" method="POST" action="dorf1.php">
            <table class="transparent loginTable">
                <tr class="account">
                    <td class="accountNameOrEmailAddress"></td>
                    <td>
                        <input type="text" name="name" value="" class="text" /><br />
                        <div class="error LTR">
                                                    </div>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr class="pass">
                    <td>
                        <input type="password" maxlength="20" name="password" value="" class="text" /><br />
                        <div class="error LTR">
 

Cableguy

Expert
Licensed User
Longtime User
I think you are confusing Java with JavaScript. They are not really related (except of the misleading name

Hi Erel,
I was meaning JavaScript...
After a few hours of trial/error I found my correct syntax.

B4X:
document. forms.login.name.value=....
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…