Page 1 of 1

Javascript is not working....Nothing is shown in the output

Posted: Mon Mar 02, 2015 11:06 am
by bharath989

This script from your tutorial not working

var Classes = Number(Apperyio("Classes").val());
var percentage = Number(Apperyio("percentage").val());

var Bunklimit = Classes ;
var BunkPercentage = Percentage ;

Apperyio('Bunklimit').text('$' + Bunklimit.toFixed(2));
Apperyio('BunkPercentage').text('$' + BunkPercentage.toFixed(2)); Image


Javascript is not working....Nothing is shown in the output

Posted: Mon Mar 02, 2015 12:13 pm
by Evgene Karachevtsev

Hello!

Could you please provide us with the link to this tutorial?


Javascript is not working....Nothing is shown in the output

Posted: Mon Mar 02, 2015 12:54 pm
by bharath989

Javascript is not working....Nothing is shown in the output

Posted: Mon Mar 02, 2015 1:05 pm
by Louis

Missing capital P on var percentage (var Percentage) ?


Javascript is not working....Nothing is shown in the output

Posted: Mon Mar 02, 2015 2:03 pm
by Evgene Karachevtsev

Please try next code which is wrapped with try ... catch statement:
pretry{
var Classes = Number(Apperyio("Classes").val());

var percentage = Number(Apperyio("percentage").val());

var Bunklimit = Classes ;

var BunkPercentage = Percentage ;

Apperyio('Bunklimit').text('$' + Bunklimit.toFixed(2));

Apperyio('BunkPercentage').text('$' + BunkPercentage.toFixed(2));
} catch(ex){
alert("Exception"+ex);
}/pre

Also you may open console to see if there were any exceptions during runtime