Search found 8 matches

by JimB
04:25, 28 Dec 2015
Forum: General discussion
Topic: HTTP call from evothings client
Replies: 15
Views: 37507

Re: HTTP call from evothings client

Got it going by using the AWS API Gateway. All running lovely now. Thanks for the support!
by JimB
09:58, 29 Nov 2015
Forum: General discussion
Topic: HTTP call from evothings client
Replies: 15
Views: 37507

Re: HTTP call from evothings client

And FYI $(document).ready(function() { //after button is clicked we download the data $('.button').click(function(){ $.getJSON("http://giveandgo.nz.s3-website-ap-southeast-2.amazonaws.com/location.json", function(result){ $.each(result.locationlist.location, function(i, field){ //alert(fie...
by JimB
09:12, 29 Nov 2015
Forum: General discussion
Topic: HTTP call from evothings client
Replies: 15
Views: 37507

Re: HTTP call from evothings client

The CORS stuff is now working (<AllowedHeader>Content-*</AllowedHeader> was the missing line, apparently) and my Evothings app can access the JSON file in terms of linking to it and displaying it, but it isn't reading it in the code. Working on it. And running the HTTPGET Cordova I get LOG: {"s...
by JimB
19:00, 27 Nov 2015
Forum: General discussion
Topic: HTTP call from evothings client
Replies: 15
Views: 37507

Re: HTTP call from evothings client

I have followed that, but must be missing something. But it appears not to be an Evothings problem, so there's that.
by JimB
10:56, 27 Nov 2015
Forum: General discussion
Topic: HTTP call from evothings client
Replies: 15
Views: 37507

Re: HTTP call from evothings client

I'll have to do some rewriting to make that go. But it appears my issue (at least in part) is that the Origin header isn't being passed and I'm not sure how to make it.

Thank you.
by JimB
09:28, 27 Nov 2015
Forum: General discussion
Topic: HTTP call from evothings client
Replies: 15
Views: 37507

Re: HTTP call from evothings client

I used the extended build but got an error trying to run that code: LOG: [ERR] Uncaught ReferenceError: cordovaHTTP is not defined This is the code I'm trying. It works if the JSON file is local,but not otherwise. Any (polite) advice gratefully received. <!doctype html> <html> <head> <title>How to P...
by JimB
19:16, 26 Nov 2015
Forum: General discussion
Topic: HTTP call from evothings client
Replies: 15
Views: 37507

Re: HTTP call from evothings client

Will do! It's a home project so I'll post on here this evening (NZ time). I'm very much a rookie, despite my age.
by JimB
10:55, 26 Nov 2015
Forum: General discussion
Topic: HTTP call from evothings client
Replies: 15
Views: 37507

Re: HTTP call from evothings client

I think I have a related issue. I want to use a remote JSON file (long term is to call an API returning JSON) but it doesn't work. I believe I have set up the CORS correctly but I get nothing back. Would the API be more likely to succeed, or just the same?

Go to advanced search