Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

xml

Hi Laura,

On Success event run:prevar item = data.root.item;
var arr = [];

item.each(function(){
arr.push($(this).direccion);
});
var result = jQuery.unique(arr);
localStorage.setItem("arr", result);/preThis code will save the array in localStorage.

And add this code in Generic service to return a result with unique values:prelocalStorage.getItem("arr");/pre

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

xml

Hi Katya:

Succes event. I need to create tego local variable storage "arr" or it creates alone?
Image

Image

I create Generic Service and add the "prueba" js test:

localStorage.getItem ("arr");

Image

And then :

Image Image

Invoke service but don't work.

Laura

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

xml

Laura,

It would be better if you sort the values on server side. The option we suggested allows you to add cities names only.

You do everything correctly, you will just need to implement a Generic service.

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

xml

ok Katya. Thanks.

I'm trying implement a Generic service.

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

xml

Hi:

I have another question.

I call a service POST

http://84.120.108.175:14380/control_c...

Image

The test is perfect:

Image

I get login.

I invoke the service when I click on the button

Image

But I need only navigate to the next page if the user and password is correct. How can I do?

Then, when I am registered I call to another service:
http://84.120.108.175:14380/control_c...

with this parameters:

foto_promo_titulo
foto_promo_texto
numero_promo
foto_promo - Foto tipo image/jpg

user_nombre - Is the nick
user_password - Is the pass

I save in local storage nick and pass.

Image

Image

But I get unable to connect to the database, so I can send data.

Can you help me?

Regards!!!

Thanks!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

xml

Hi Laura,

Are there any console errors? Check them to know why your service doesn't work.

You can navigate to another page right after login:
If the server returns an error (incorrect login/password) add 'Navigate to page' action on Complete event. Else on service Error event notify user that he entered incorrect data.

laura6372139
Posts: 0
Joined: Wed Oct 30, 2013 11:54 am

xml

ok thanks

Return to “Issues”