She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

Which event is more appropriate - keyup, keydown or keypress, value change or input

Hi M&M,

Thank you very much

i used this code in keyup event :

var user = Apperyio('textuser').val();
var pass = Apperyio('txtpass').val();
var n = user.length;
var m = pass.length;

if ((n == 0) || (m == 0)) {
$("[dsid='loginButton']").attr('disabled', true).addClass('ui-state-disabled');
}
else{
//alert(n);
$("[dsid='loginButton']").attr('disabled', false).removeClass( 'ui-state-disabled' );
}
Thanks

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

Which event is more appropriate - keyup, keydown or keypress, value change or input

Hello, I have got the following code:

var str = Appery("RTschedP2input").val();
if ( str !== "" ) {
search4str(str, "RTgameSched");
}

it fires well the function search4str(...) on keyup in the Appery browser tester.
however, when install on Android 4.4.4. or 4.4.2, both don't fire anything.

I tried with keydown and keypress but it doesn't work either.

any suggestion ?
many thks in advance,

Eric

Return to “Issues”