Nayef
Posts: 0
Joined: Mon Jun 17, 2013 4:08 pm

How to make a code request from input field ?

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 ?

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

How to make a code request from input field ?

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

Nayef
Posts: 0
Joined: Mon Jun 17, 2013 4:08 pm

How to make a code request from input field ?

Hi Max

I don't know where to begin

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

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

How to make a code request from input field ?

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

Nayef
Posts: 0
Joined: Mon Jun 17, 2013 4:08 pm

How to make a code request from input field ?

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

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

How to make a code request from input field ?

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.

Nayef
Posts: 0
Joined: Mon Jun 17, 2013 4:08 pm

How to make a code request from input field ?

ok, then how to make a code request

pls help

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

How to make a code request from input field ?

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

Nayef
Posts: 0
Joined: Mon Jun 17, 2013 4:08 pm

How to make a code request from input field ?

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 ?

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

How to make a code request from input field ?

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

Return to “Issues”