bharath989
Posts: 0
Joined: Wed Feb 25, 2015 8:04 pm

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

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

Hello!

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

Louis
Posts: 0
Joined: Wed Nov 05, 2014 2:03 pm

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

Missing capital P on var percentage (var Percentage) ?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

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

Return to “Issues”