Page 1 of 1

How can I add a reference to the Appery JavaScript API?

Posted: Tue Jul 23, 2013 2:12 pm
by Srinivas Kotapally

I tried to use it in an event on one of the forms and nothing happens.
Something like
var allergy = Appery("txtAppergy");
alert(allergy.val());


How can I add a reference to the Appery JavaScript API?

Posted: Tue Jul 23, 2013 2:18 pm
by maxkatz

You don't need to include a reference to Appery.io JS API. It's included in every app automatically. What kind of component 'txtAppergy' is?


How can I add a reference to the Appery JavaScript API?

Posted: Tue Jul 23, 2013 8:15 pm
by Srinivas Kotapally

It's a textbox.


How can I add a reference to the Appery JavaScript API?

Posted: Tue Jul 23, 2013 8:23 pm
by maxkatz

Check your code and component name. Just tested and it works:

var input = Appery("in");
console.log(input.val());