Page 1 of 1

how to reffer on 2+ values on mapping and javascript

Posted: Tue Nov 12, 2013 10:14 pm
by Giannis Pelelis

Image

How could I reffer on value of geoloc and msg?


how to reffer on 2+ values on mapping and javascript

Posted: Wed Nov 13, 2013 1:22 am
by Illya Stepanov

Hi Giannis,

It's not clear what you are trying to achieve here, can you describe it in more details?

In JavaScript -- you are describing a function that receives the values ​​and processes them.


how to reffer on 2+ values on mapping and javascript

Posted: Wed Nov 13, 2013 9:07 am
by Giannis Pelelis

i mean that if i pass just one variable from mapping,then I could refer on that with "value" .
But now I am passing two variables on msg function,my problem is that i don't know how can I use their values

I tried something
var location = geoloc.value;
var message = msg.value;

But I got undifined


how to reffer on 2+ values on mapping and javascript

Posted: Wed Nov 13, 2013 2:21 pm
by Kateryna Grynko

Hi Giannis,

It's better to use two different variables and map result to them.