Search found 0 matches

by Alan Smith
Fri Feb 01, 2019 10:41 am
Forum: Moved from Get Satisfaction
Topic: Redirect inside function requires 2 button clicks, why?
Replies: 3
Views: 437

Redirect inside function requires 2 button clicks, why?

Yes. The callback function is called.

The variables etc are all populated within the if(status=="ok") block, its just ignoring the redirect?!?!

Its very odd!

by Alan Smith
Thu Jan 31, 2019 4:36 pm
Forum: Moved from Get Satisfaction
Topic: Redirect inside function requires 2 button clicks, why?
Replies: 3
Views: 437

Redirect inside function requires 2 button clicks, why?

Hi I am having an issue with redirecting to a different page from within a function, that is called on a button press. The function runs as it should no problem, but the redirect does not work on first click, you have to click the button a second time for the redirect? The redirect is: Apperyio.navi...
by Alan Smith
Thu Jul 26, 2018 12:43 pm
Forum: Moved from Get Satisfaction
Topic: Problem displaying a dynamic select list on Ionic app
Replies: 3
Views: 441

Problem displaying a dynamic select list on Ionic app

Thanks for replying.

I have changed to above. but now I get nothing, the select is empty, no options!

by Alan Smith
Thu Jul 26, 2018 9:50 am
Forum: Moved from Get Satisfaction
Topic: Problem displaying a dynamic select list on Ionic app
Replies: 3
Views: 441

Problem displaying a dynamic select list on Ionic app

I am trying to display a dynamic list of user vehicles on a select dropdown component on an ionic app. BUT I cant seem to get all vehicles in the list, its appears to be overwriting them, leaving the last one only. My list of vehicles from an external database via an api are held in: $scope.vehicles...
by Alan Smith
Thu Jul 12, 2018 9:26 am
Forum: Moved from Get Satisfaction
Topic: How to send a picture from Ionic camera_getPicture plugin to an external API service
Replies: 9
Views: 894

How to send a picture from Ionic camera_getPicture plugin to an external API service

Ok thanks. I can now receive the base64 on the server. But now because I have changed the service request content type to JSON, my authorisation header is missing?

Any idea why this is now being removed?

by Alan Smith
Wed Jul 11, 2018 9:17 am
Forum: Moved from Get Satisfaction
Topic: How to send a picture from Ionic camera_getPicture plugin to an external API service
Replies: 9
Views: 894

How to send a picture from Ionic camera_getPicture plugin to an external API service

Ok thanks for that. Just one more thing, how do I assign the variable to the body of the server code? Like this? "body": { "image": request.get('image'), } Because it is empty. If i replace request.get('image') with any text for example '1234', it is received on my server. But re...
by Alan Smith
Mon Jul 09, 2018 8:15 pm
Forum: Moved from Get Satisfaction
Topic: How to send a picture from Ionic camera_getPicture plugin to an external API service
Replies: 9
Views: 894

How to send a picture from Ionic camera_getPicture plugin to an external API service

And how would you map them to the request?

1.So from the page, like this?

requestData.body.image = thedata;

  1. How do i send this in the service. Like this?

    "body": {
    "image": request.get('image'),
    }

by Alan Smith
Mon Jul 09, 2018 8:08 pm
Forum: Moved from Get Satisfaction
Topic: How to send a picture from Ionic camera_getPicture plugin to an external API service
Replies: 9
Views: 894

How to send a picture from Ionic camera_getPicture plugin to an external API service

OK, but how do i get the variable image, into the body of the request?

On the service request, you can add header variables and parameter variables, but how do you add body request variables?

by Alan Smith
Mon Jul 09, 2018 4:01 pm
Forum: Moved from Get Satisfaction
Topic: How to send a picture from Ionic camera_getPicture plugin to an external API service
Replies: 9
Views: 894

How to send a picture from Ionic camera_getPicture plugin to an external API service

OK, so the var is populated. But i think the issue is that the data is Base64, so its too big to send via get. I tried sending a static variable with preset text, and this was received on the server, but when changed back to the scope var, it was empty. Can I send POST via a service? This is my serv...
by Alan Smith
Mon Jul 09, 2018 2:18 pm
Forum: Moved from Get Satisfaction
Topic: How to send a picture from Ionic camera_getPicture plugin to an external API service
Replies: 9
Views: 894

How to send a picture from Ionic camera_getPicture plugin to an external API service

I'm trying to send an image from an ionic app to an external API via server code, using the camera_getPicture plugin, but the image data is blank. This is the mapping from the plugin to the var: https://d2r1vs3d9006ap.cloudfront.net/s3_images/1739731/d_inline.jpg?1531148375 This is the code I am usi...
by Alan Smith
Wed Apr 25, 2018 2:13 pm
Forum: Moved from Get Satisfaction
Topic: Getting value of option selected from dropdown in ionic
Replies: 1
Views: 300

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: Moved from Get Satisfaction
Topic: Getting value from Ionic global variable
Replies: 1
Views: 305

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: Moved from Get Satisfaction
Topic: External JS resource not included on page
Replies: 0
Views: 469

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: Moved from Get Satisfaction
Topic: Mapping service response to components
Replies: 3
Views: 416

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: Moved from Get Satisfaction
Topic: Passing a global scope variable into service request header
Replies: 3
Views: 412

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: Moved from Get Satisfaction
Topic: Mapping service response to components
Replies: 3
Views: 416

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: Moved from Get Satisfaction
Topic: Passing a global scope variable into service request header
Replies: 3
Views: 412

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: Moved from Get Satisfaction
Topic: Map service response paremeter to global scope variable?
Replies: 1
Views: 259

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: Moved from Get Satisfaction
Topic: Mapping inputs to service header
Replies: 14
Views: 1274

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: Moved from Get Satisfaction
Topic: Mapping inputs to service header
Replies: 14
Views: 1274

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" }); ...
by Alan Smith
Mon Feb 26, 2018 9:38 pm
Forum: Moved from Get Satisfaction
Topic: Mapping inputs to service header
Replies: 14
Views: 1274

Mapping inputs to service header

After quite a few more days I am still having issues with this. I am trying to post to an external API, using application/x-www-form-urlencoded, and am dumping/echoing the posted variables on the server. OK, so if I use postman to post to the same url as I do within the app, using these headers: arr...
by Alan Smith
Thu Feb 22, 2018 12:26 pm
Forum: Moved from Get Satisfaction
Topic: Mapping inputs to service header
Replies: 14
Views: 1274

Mapping inputs to service header

Hi

I would prefer to post the data in the header.

I think the issue I am having is getting the form input into the mapping/request data header.

How do I get/map/retreive the form input into the request data?

Do I have to name the form input somehow? Add a property to the input?

by Alan Smith
Wed Feb 21, 2018 11:37 am
Forum: Moved from Get Satisfaction
Topic: Mapping inputs to service header
Replies: 14
Views: 1274

Mapping inputs to service header

I really need some help on this. I've watched videos and looked and lots of tutorials, and I've followed them closely. I cant understand what I need to do, its not clear from the documentation?

by Alan Smith
Wed Feb 21, 2018 11:26 am
Forum: Moved from Get Satisfaction
Topic: Mapping inputs to service header
Replies: 14
Views: 1274

Mapping inputs to service header

I think I may be misunderstanding something.

I cant seem to get any variables to be passed in my requests. How can I get this to work?

by Alan Smith
Wed Feb 21, 2018 9:36 am
Forum: Moved from Get Satisfaction
Topic: Mapping inputs to service header
Replies: 14
Views: 1274

Mapping inputs to service header

HI Serhii Thank you for your response. The parameters are not getting to the server. I have been using browser developer tools to watch the parameters being sent, and they are empty. I have attached a screen shot trying to send these as query strings, but the strings are empty. Also, when I try and ...
by Alan Smith
Tue Feb 20, 2018 8:59 pm
Forum: Moved from Get Satisfaction
Topic: Mapping inputs to service header
Replies: 14
Views: 1274

Mapping inputs to service header

Is there a before send option, or is this from an outdated version of appery?

by Alan Smith
Tue Feb 20, 2018 8:36 pm
Forum: Moved from Get Satisfaction
Topic: Mapping inputs to service header
Replies: 14
Views: 1274

Mapping inputs to service header

OK, so i assume this is because I need to somehow link the inout to the scope variable. How do I do this? How do I name the input?

by Alan Smith
Tue Feb 20, 2018 4:24 pm
Forum: Moved from Get Satisfaction
Topic: Mapping inputs to service header
Replies: 14
Views: 1274

Mapping inputs to service header

I'm trying to map 2 inputs on a UI to a server code service requesr. I've tried mapping them to the header and the query string, but they are not being mapped. Heres the UI, with an email and password field https://d2r1vs3d9006ap.cloudfront.net/s3_images/1706311/ui_inline.png?1519143737 Heres the fu...
by Alan Smith
Mon Feb 19, 2018 5:22 pm
Forum: Moved from Get Satisfaction
Topic: Twilio image/video messaging possible with Appery?
Replies: 2
Views: 357

Twilio image/video messaging possible with Appery?

Can we use Twilio for messaging in the app, Video, images etc? Or is this just a text messaging service?

Or do you know of any messaging service we can use to send text/audio/image/video messaging via an appery app?

Any links to tutorials or documentation for this?

by Alan Smith
Mon Feb 05, 2018 10:45 am
Forum: Moved from Get Satisfaction
Topic: Add new list item to ionoc side menu
Replies: 3
Views: 420

Add new list item to ionoc side menu

Its ok I worked it out. I needed to have the side menu selected on the design screen.

Thanks for your help

by Alan Smith
Mon Feb 05, 2018 10:36 am
Forum: Moved from Get Satisfaction
Topic: Add new list item to ionoc side menu
Replies: 3
Views: 420

Add new list item to ionoc side menu

Hi Serhii Thank you for the response. I already have the 3 default list items on the menu, the issue I have is adding additional pages that I have added. I cannot drag any components to this menu? This what I have, I need to add additional list items, but I cannot see how to add additional items? ht...
by Alan Smith
Sun Feb 04, 2018 9:47 pm
Forum: Moved from Get Satisfaction
Topic: Add new list item to ionoc side menu
Replies: 3
Views: 420

Add new list item to ionoc side menu

How do i add a new listitem to ionic side bar. I have the 3 standard (home,profile,info) but I cant see how I can add other pages. I dont see a + icon anywhere on the outline, pallete or design pages? What am i missing

by Alan Smith
Wed Dec 17, 2014 4:25 pm
Forum: Moved from Get Satisfaction
Topic: Missing button icons in .apk app
Replies: 3
Views: 353

Missing button icons in .apk app

Hi Evgene

Yes it works fine in the browser. Haven't tried it on other devices, its the only one i have.

Its a vodafone smart 4, android 4.4.2

by Alan Smith
Wed Dec 17, 2014 1:57 pm
Forum: Moved from Get Satisfaction
Topic: Missing button icons in .apk app
Replies: 3
Views: 353

Missing button icons in .apk app

I have exported my app to .apk and downloaded the app to an android device. Unfortunately the button icons are not showing. I have used the appery icons, not custom. Its shows a circle where the icon should be. See below screenshot: https://d2r1vs3d9006ap.cloudfront.net/s3_images/1133571/IMG_4517_in...
by Alan Smith
Wed Oct 29, 2014 6:01 pm
Forum: Moved from Get Satisfaction
Topic: Get button text value on click via javascript
Replies: 1
Views: 199

Get button text value on click via javascript

I have some dynamically generated buttons.

I was to retrieve the button text via javascript.

Something like:

alert(jQuery(this).attr("button_text"));

Is this possible?

by Alan Smith
Wed Oct 29, 2014 4:58 pm
Forum: Moved from Get Satisfaction
Topic: Using grids/something for dynamically generated buttons
Replies: 4
Views: 458

Using grids/something for dynamically generated buttons

Is there any documentation on this. If i was creating a dynamic navbar for example, how would I assign page navigation to that dynamic nav item?

by Alan Smith
Wed Oct 29, 2014 4:14 pm
Forum: Moved from Get Satisfaction
Topic: Select dropdown posting only first value
Replies: 4
Views: 431

Select dropdown posting only first value

I see what I did wrong, i didn't map from the 'selected' option. So its working now.

by Alan Smith
Wed Oct 29, 2014 11:10 am
Forum: Moved from Get Satisfaction
Topic: Using grids/something for dynamically generated buttons
Replies: 4
Views: 458

Using grids/something for dynamically generated buttons

How will i add navigation to the button? If i had the page name in the database, how would i then add that to the button dynamically?

by Alan Smith
Wed Oct 29, 2014 10:48 am
Forum: Moved from Get Satisfaction
Topic: Select dropdown posting only first value
Replies: 4
Views: 431

Select dropdown posting only first value

Hi I have checked the above and everythign looks ok. The select is not dynamically created from a database, it is simply 3 options that have been input manually. I've attached a screen shot of the select options. https://d2r1vs3d9006ap.cloudfront.net/s3_images/1114007/select_inline.jpg?1414579387 I ...
by Alan Smith
Wed Oct 22, 2014 8:11 pm
Forum: Moved from Get Satisfaction
Topic: Select dropdown posting only first value
Replies: 4
Views: 431

Select dropdown posting only first value

I have a select dropdown list, which sends the selected value to a database via a REST service But whatever option is chosen, it only submits the first value in the list. I've deleted it and recreated it a few times and tried everything but it just keeps posting the same first value. Any ideas why t...
by Alan Smith
Wed Oct 22, 2014 1:24 pm
Forum: Moved from Get Satisfaction
Topic: Using grids/something for dynamically generated buttons
Replies: 4
Views: 458

Using grids/something for dynamically generated buttons

I have a menu page on my app. The menu page consists of buttons and their only function is to navigate to various pages on the app. I want the buttons to be generated dynamically from a database. So if the user of the app has permission to visit a page, the button will be visible. I have used lists ...
by Alan Smith
Wed Oct 22, 2014 9:47 am
Forum: Moved from Get Satisfaction
Topic: Problem invoking service from Javascript
Replies: 5
Views: 539

Problem invoking service from Javascript

Is there a way to invoke the service from several pages. As you can see from above, I am running the function on every page load, so if I use the instance to invoke the service, it will only work on that page.

Is there a way this can be done, to invoke the service without it being page dependent?

by Alan Smith
Tue Oct 21, 2014 8:21 pm
Forum: Moved from Get Satisfaction
Topic: Problem invoking service from Javascript
Replies: 5
Views: 539

Problem invoking service from Javascript

Hi Kateryna That was exactly the problem, thank you. Just further on this though. If I'm returning a value from the REST service, how do I collect that via the function and insert it into a local variable? I assume i get it from the below? success: function(e) { alert(data); }, ??
by Alan Smith
Tue Oct 21, 2014 6:39 pm
Forum: Moved from Get Satisfaction
Topic: Problem invoking service from Javascript
Replies: 5
Views: 539

Problem invoking service from Javascript

I am having problems invoking a REST service through Javascript. I've read through the forum and tried everything I can find but I still cant get it to work. My rest service is called: checkJobStatus And on page load I have a function call: checkJobStatusFunction(); And the function, which isnt quit...
by Alan Smith
Mon Sep 01, 2014 12:22 pm
Forum: Moved from Get Satisfaction
Topic: Paypal API return URL
Replies: 16
Views: 1306

Paypal API return URL

Hi

Can anyone help me with the redirect? All i need to do i close the InAppBrowser and redirect to a page in the app?

Thanks

by Alan Smith
Sat Aug 30, 2014 8:38 am
Forum: Moved from Get Satisfaction
Topic: Paypal API return URL
Replies: 16
Views: 1306

Paypal API return URL

Hi Katya Thank you for your reply. I have tested this app on a couple of android devices a Samsumg Galaxy and a Google (Vodafone) Smart 4. In detail what happens: A user of the app would like to report that their vehicle has broken down. They navigate the breakdown page (Breakdown.html). The app the...
by Alan Smith
Thu Aug 28, 2014 1:28 pm
Forum: Moved from Get Satisfaction
Topic: Paypal API return URL
Replies: 16
Views: 1306

Paypal API return URL

Can someone please help me solve this issue?

by Alan Smith
Thu Aug 28, 2014 11:40 am
Forum: Moved from Get Satisfaction
Topic: Paypal API return URL
Replies: 16
Views: 1306

Paypal API return URL

I have tried using the code you mentioned in the post. But it is still just redirecting to the appery login page. Here is the code I am using (Breakdown.html is the page that sends data and redirects to paypal). Can you see anything wring with it? if (typeof(cordova) !== "undefined") { var...
by Alan Smith
Wed Aug 27, 2014 6:38 pm
Forum: Moved from Get Satisfaction
Topic: Paypal API return URL
Replies: 16
Views: 1306

Paypal API return URL

Hi Im afraid I cant really make any sense of that post. The code that you gave as I stated above is custom to their application, so it doesnt work on my application and makes no sense on how i need to use it. I understand that I need to use window.open instead of window.location.href but I dont get ...
by Alan Smith
Tue Aug 26, 2014 4:27 pm
Forum: Moved from Get Satisfaction
Topic: Paypal API return URL
Replies: 16
Views: 1306

Paypal API return URL

Hi Katya

Thanks for the reference to the previous post. You seem to offer the OP some custom code which seems to be specific to his application, so I dont see how that would help me.

Do i need to use the plugin, or can I do it the way that is suggested on the above youtube tutorial?

by Alan Smith
Tue Aug 26, 2014 2:16 pm
Forum: Moved from Get Satisfaction
Topic: Paypal API return URL
Replies: 16
Views: 1306

Paypal API return URL

I have created an app that uses the paypal API to take payment via the app. I used the tutorial on your youtube page https://www.youtube.com/watch?v=1w-_z... Everything works great, i am redirected to paypal sandbox, the payment is taken and then redirected back to a specified page on my app (specif...
by Alan Smith
Wed Jun 25, 2014 7:33 pm
Forum: Moved from Get Satisfaction
Topic: How to invoke error on REST response
Replies: 1
Views: 253

How to invoke error on REST response

Hi I have created a simple login feature that queries an external database using PHP. But how do I specify in the response if its an error or a success? So far I've tried a whole host of things but I cant find any documentation. I am creating a response like this (although I have tried many variatio...
by Alan Smith
Tue Jun 10, 2014 6:35 pm
Forum: Moved from Get Satisfaction
Topic: Mapping problem to external script..i think?
Replies: 2
Views: 305

Mapping problem to external script..i think?

Hi

Yes it was in fact cross domain issues, which was solved by using proxy. Thank you for your help

by Alan Smith
Tue Jun 10, 2014 4:59 pm
Forum: Moved from Get Satisfaction
Topic: Mapping problem to external script..i think?
Replies: 2
Views: 305

Mapping problem to external script..i think?

I am using a REST service which takes the coordinates from a googlemap and sends them via POST to an external script, when i use the test function within the service configuration, entering request parameters manually it works. But when I run it on the app its not sending the parameters. I have mapp...