Page 1 of 2

How to make a code request from input field ?

Posted: Wed Jun 19, 2013 12:47 am
by Nayef

Hello

I have a small project for verification of the national identity card recharge
need to request two field

1- National ID
2- Card recharge

Image

I want to take this two entry and make a call for Example : 123N-ID*cardnumber#

So that the code 123 has to be static and the last (#) also

How i do that ?


How to make a code request from input field ?

Posted: Wed Jun 19, 2013 12:49 am
by maxkatz

You can read the values with jQuery or Appery.io JS library: http://docs.appery.io/javascript-api/


How to make a code request from input field ?

Posted: Wed Jun 19, 2013 1:21 am
by Nayef

Hi Max

I don't know where to begin

I can read but i cannot transform it to my needs .


How to make a code request from input field ?

Posted: Wed Jun 19, 2013 2:39 am
by maxkatz

If you are new to Appery.io platform, it makes sense to start here: http://docs.appery.io/getting-started


How to make a code request from input field ?

Posted: Wed Jun 19, 2013 3:07 am
by Nayef

You talking in general,
I know how the platform works
My question regarding java, how to build this kind of requests in JAVA , thanks anyway


How to make a code request from input field ?

Posted: Wed Jun 19, 2013 3:28 am
by maxkatz

The first link that I posted shows you exactly how to read values from an input field with JavaScript.

There is no Java on the client, only JavaScript.

As for concatenating strings, it's as simple as:

var v1 = "str1"
var value = v1+ "str2";

Please search online and you will find many examples how to do that.


How to make a code request from input field ?

Posted: Thu Jun 20, 2013 8:27 pm
by Nayef

ok, then how to make a code request

pls help


How to make a code request from input field ?

Posted: Thu Jun 20, 2013 8:28 pm
by maxkatz

Please review the docs and the tutorials. Every tutorials shows how to do a service request.


How to make a code request from input field ?

Posted: Sat Jun 22, 2013 9:45 pm
by Nayef

This is the code from android project - Eclips software

Intent callme = new Intent(Intent.ACTION_CALL);
callme.setData(Uri.parse("tel:123"));
startActivity(callme);

How to apply this in a button within Appery,io Platform ?


How to make a code request from input field ?

Posted: Sat Jun 22, 2013 10:46 pm
by maxkatz

You create apps using HTML5, JavaScript and CSS in Appery.io (not Java). Please read read http://docs.appery.io/getting-started.