Software Archive
Read-only legacy content
公告
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 讨论

Password field provides only masked value after compilation

T_R_
初学者
594 次查看

Hi guys, I experience a weird problem:

When I use an input field, I can get its value by e.g.

document.getElementById("input_password").value

or 

$('#input_password').val()

Now, when I declare an input field as type="password" instead of type="text", the input text will be masked (show "*******" instead of the actual password). No problem for the intel xdk emulator - it will give me the unmasked values.

BUT after I compile everything, I'm only getting the masked value ("****").

 

I'm using Intel XDK 2673 on ubuntu, with App Framework 3.

Code snipplet:

<div class="table-thing with-label widget uib_w_85 d-margins" data-uib="app_framework/input" data-ver="1">
    <label style="min-width:100px;" class="narrow-control label-inline">Passwort</label>
    <input class="wide-control" placeholder="Passwort" type="password" id="input_password">
</div>

0 项奖励
3 回复数
PaulF_IntelCorp
594 次查看

Are you building with Crosswalk? What are your results if you use the Debug tab?

0 项奖励
Randy_J_
初学者
594 次查看

I'm having this same issue and just building/packaging for Mobile Web (HTML5) no Cordova.  It doesn't occur in desktop Chrome browser but it happens in Android Chrome under latest Marshmallow.  Actually, our previous version of this which had an APK build from an earlier XDK is also broken on Android so it must be an issue with Webview as well.  I haven't found a workaround yet other than changing the type to text and thereby having no mask on the field.

0 项奖励
PaulF_IntelCorp
594 次查看

Randy -- even when building a web app you have the choice to use Crosswalk or Android. I know Android 6 (Marshmallow) has a modern webview that is regularly updated, just like Android 5, but it would still be worth trying with a Crosswalk embedded build, to see if you get different results.

0 项奖励
回复