Willie Sims6090317
Posts: 0
Joined: Tue Jul 30, 2013 9:42 pm

I cant seem to find what I am doing wrong can you look at my code I keep getting errors

var input=Appery('paypermile');
var rate=Appery('rate');
var weight=Appery('weight');
//var c=100;
var perhun=weight/100;
var y=perhunrate;
var x=yinput;
alert (x)

I have tried using the .val() both the variables of Y and X but then I get a object nan has no method value
if i use c and replace the 100 with c; It throws a error the ; is unexpected and nothing happens this is a button event

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

I cant seem to find what I am doing wrong can you look at my code I keep getting errors

The first line should be:
code
var input=Appery('paypermile').val();
/code

Make sure first you get the right value there.

Willie Sims6090317
Posts: 0
Joined: Tue Jul 30, 2013 9:42 pm

I cant seem to find what I am doing wrong can you look at my code I keep getting errors

Thanks Max I had to at .val() to all three,

One other Question How do you set it up so when a person pushes next on his device they will go to the next input box?

Willie Sims6090317
Posts: 0
Joined: Tue Jul 30, 2013 9:42 pm

I cant seem to find what I am doing wrong can you look at my code I keep getting errors

Ok

Have not done so yet but now Ive run into a little hitch
tested on an android phone and for some reason my paypermile field is deleting decimal numbers it will accept whole numbers but not like say .28, works fine on the computer window, but when you open it up in an android it deletes it

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

I cant seem to find what I am doing wrong can you look at my code I keep getting errors

Probably a browser issue. What input type do you use?

Willie Sims6090317
Posts: 0
Joined: Tue Jul 30, 2013 9:42 pm

I cant seem to find what I am doing wrong can you look at my code I keep getting errors

It only does this on the android both by the internet access and by download and install of the apk, The field was set to number all of the ones that are set to number will do this, If I enter any float ie, .28 it will erase the number when I leave the field, but if I access it with my computer browser it works fine
Could it be a floating point issue,?

Willie Sims6090317
Posts: 0
Joined: Tue Jul 30, 2013 9:42 pm

I cant seem to find what I am doing wrong can you look at my code I keep getting errors

Brand new phone 4.1.2, model vs930 will delete the field if you enter a decimal first .28 but will allow whole numbers both testing and by direct install my Acer A200 Android version 4.0.3 does the same,
I have an older android phone a Samsung Charge 2.6 kernal that will enter the data but hangs and freezes I have only added three even javascripts
FLT Button:
var input = Appery('paypermile');
var rate = Appery('rate');
var x = (rate.val()*input.val());
alert (x);

CMH Button
var input=Appery('paypermile').val();
var rate=Appery('rate').val();
var weight=Appery('weight').val();
//var c=100;
var perhun=weight/100;
var y=perhunrate;
var x=yinput;
alert (x);

and Miles Button
var rate = Appery('rate').val();
var miles= Appery ('miles').val();
var pay = Appery ('paypermile').val();
var x = ratemiles;
var y = payx;
alert (y)
This is the only thing that I have changed other than name tags and text box properties to number

Return to “Issues”