Search found 14 matches

Go to advanced search

by Michael Pierce5821971
Wed May 29, 2013 4:38 pm
Forum: Issues
Topic: Condition on local variable
Replies: 3
Views: 499
 
Jump to post

Condition on local variable

if(dontShowHowTo == 'true'){ }else{ Appery.navigateTo('howToPopup', {transition: 'pop'}); } The error on the console is "dontShowHowTo is not defined". However, when I look at the local resources it is defined with a value of 'false' that it is getting from a Get_User query response. Essen...
by Michael Pierce5821971
Wed May 29, 2013 4:20 pm
Forum: Issues
Topic: Condition on local variable
Replies: 3
Views: 499
 
Jump to post

Condition on local variable

I am trying to run a javascript if statement on local variable that is set with a query response when the app is first started or when the user logs in. The javascript console is giving me an error stating that the variable is not defined. Not sure what needs to be done to fix this.

by Michael Pierce5821971
Wed May 08, 2013 11:35 am
Forum: Issues
Topic: Response to an array
Replies: 5
Views: 1161
 
Jump to post

Response to an array

Thanks!! But the big issue was trying to put the response into a local array variable.

by Michael Pierce5821971
Tue May 07, 2013 6:34 pm
Forum: Issues
Topic: Response to an array
Replies: 5
Views: 1161
 
Jump to post

Response to an array

Is there a way to just store all user id's that are returned in a response to an array so that I can randomly choose a user id on a button click event? Right now I have a service that works and returns all users, but I only need the user ids into an array so I can perform a function to just retrieve...
by Michael Pierce5821971
Tue May 07, 2013 1:04 pm
Forum: Issues
Topic: Search for a username
Replies: 16
Views: 1869
 
Jump to post

Search for a username

Thanks Max! Just an FYI checking if it was blank by just doing "" didn't work. I had to check if the response text was "[]" for it to work. Evidently the square brackets are part of the text response.

by Michael Pierce5821971
Mon May 06, 2013 3:19 pm
Forum: Issues
Topic: Search for a username
Replies: 16
Views: 1869
 
Jump to post

Search for a username

is (response is empty) an actual condition that can be tested or is there another way to get the response from the server? the service is called get_friend, how do I get the response so I can test if it is empty?

by Michael Pierce5821971
Mon May 06, 2013 3:41 am
Forum: Issues
Topic: Search for a username
Replies: 16
Views: 1869
 
Jump to post

Search for a username

I am still not figuring this out on how to validate if the response if empty.

by Michael Pierce5821971
Mon May 06, 2013 2:46 am
Forum: Issues
Topic: Search for a username
Replies: 16
Views: 1869
 
Jump to post

Search for a username

How would I write this code to check for an empty response?

by Michael Pierce5821971
Mon May 06, 2013 12:35 am
Forum: Issues
Topic: Search for a username
Replies: 16
Views: 1869
 
Jump to post

Search for a username

What would the javascript be to check a response?

by Michael Pierce5821971
Mon May 06, 2013 12:24 am
Forum: Issues
Topic: Search for a username
Replies: 16
Views: 1869
 
Jump to post

Search for a username

That is exactly what is happening. It returns a success but the response is blank. I'm not sure what to do now. I only want the second service to be invoked if the username that is searched for actually exists.

Go to advanced search