Search found 54 matches

Go to advanced search

by Alan Smith
Wed Apr 25, 2018 2:13 pm
Forum: Issues
Topic: Getting value of option selected from dropdown in ionic
Replies: 1
Views: 1000
 
Jump to post

Getting value of option selected from dropdown in ionic

How do i get the selected option of a dropdown list in Ionic? I've tried this: var value = Apperyio("rescueVehicleSel").find('option:selected').text(); And var value = Appery("rescueVehicleSel").find(":selected").text(); But its telling me that Apperyio is not a functio...
by Alan Smith
Mon Apr 23, 2018 8:55 pm
Forum: Issues
Topic: Getting value from Ionic global variable
Replies: 1
Views: 554
 
Jump to post

Getting value from Ionic global variable

I have a global variable set via a model. https://d2r1vs3d9006ap.cloudfront.net/s3_images/1726471/var_inline.png?1524516908 Its in JSON format. I need to get to the value of the JSON object, not for the UI, but for custom code. This is the value I am saving in the model variable JSON {"expiry&q...
by Alan Smith
Mon Apr 23, 2018 12:58 pm
Forum: Issues
Topic: External JS resource not included on page
Replies: 0
Views: 1448
 
Jump to post

External JS resource not included on page

I am trying to use an external Javascript resource, which is the Sagepay API. I have added the resource in app settings: https://d2r1vs3d9006ap.cloudfront.net/s3_images/1726356/1_inline.png?1524488173 The method I'm trying to use is not being called, so how can I call a method from the external sour...
by Alan Smith
Mon Mar 05, 2018 3:24 pm
Forum: Issues
Topic: Mapping service response to components
Replies: 3
Views: 599
 
Jump to post

Mapping service response to components

Hi Serhii I have cleared cache and also tried in several different browsers, but it does not fix the issue. Please see screenshots UI with several components: https://d2r1vs3d9006ap.cloudfront.net/s3_images/1711485/ui_inline.png?1520263381 Function screen: https://d2r1vs3d9006ap.cloudfront.net/s3_im...
by Alan Smith
Mon Mar 05, 2018 3:21 pm
Forum: Issues
Topic: Passing a global scope variable into service request header
Replies: 3
Views: 600
 
Jump to post

Passing a global scope variable into service request header

Hi Serhii

I have a global variable that I need to send via server code. I have an auth token, saved as a global variable.

How do i send this via server code to the service in the header?

by Alan Smith
Sun Mar 04, 2018 9:40 pm
Forum: Issues
Topic: Mapping service response to components
Replies: 3
Views: 599
 
Jump to post

Mapping service response to components

I am trying to map an array from a service response to a list component. I am building a Ionic app. When i click on the 'Click to edit mapping' on the service response, there are NO compenents listed, even through there is a list on the interface, and some other components. Can I map the response li...
by Alan Smith
Sun Mar 04, 2018 5:21 pm
Forum: Issues
Topic: Passing a global scope variable into service request header
Replies: 3
Views: 600
 
Jump to post

Passing a global scope variable into service request header

I'm trying to pass a global scope variable into a service header, but I'm not sure on the syntax for this? I am using an Ionic server code POST request, and I am trying to pass a token via the Authorization header. I cannot seem to use a $scope variable. The variable on my index page is: auth. The v...
by Alan Smith
Fri Mar 02, 2018 2:37 pm
Forum: Issues
Topic: Map service response paremeter to global scope variable?
Replies: 1
Views: 379
 
Jump to post

Map service response paremeter to global scope variable?

How can I map the response parameter from a server code API call to a global scope variable? 1) I have setup the variable on the index page (auth,auth) 2) I have created a model, which a child variable (auth,token) 3) I am trying to set this global variable via a response parameter, like this: $scop...
by Alan Smith
Tue Feb 27, 2018 7:46 pm
Forum: Issues
Topic: Mapping inputs to service header
Replies: 14
Views: 1890
 
Jump to post

Mapping inputs to service header

If i setup the server code like this, with the variables hard coded, then it works and I receive the posted data on the server. (foo & bar) var url = " https://dashboard.cmg-org.com/auth/token "; var email = "foo"; var password = "bar"; var XHRResponse = XHR2.send(&...
by Alan Smith
Tue Feb 27, 2018 4:03 pm
Forum: Issues
Topic: Mapping inputs to service header
Replies: 14
Views: 1890
 
Jump to post

Mapping inputs to service header

No its server code: var url = "url"; var XHRResponse = XHR2.send("POST", url, { "parameters": { "password": '', "email": '', }, "headers": { "Email": '', "Password": '', }, "body": "Request body" }); ...

Go to advanced search