Yeah exactly that doesn't work. How do I avoid that error? It says:" 
XMLHttpRequest cannot load 
https://biglibrary.pythonanywhere.com/app/phonegap/temp.json. No 
'Access-Control-Allow-Origin' header is present on the requested resource. 
Origin 'null' is therefore not allowed access." when I use your code 
snippet.

On Friday, November 11, 2016 at 11:33:11 PM UTC+5:30, Leonel Câmara wrote:
>
> $.getJSON("https://biglibrary.pythonanywhere.com/app/phonegap/temp.json 
> <https://www.google.com/url?q=https%3A%2F%2Fbiglibrary.pythonanywhere.com%2Fapp%2Fphonegap%2Ftemp.json&sa=D&sntz=1&usg=AFQjCNH52N8REuOqMme7l1GWwDKduE0mVQ>
> ").then(function(data) {
>     alert(data.message);
>
> });
>
> Note that you may have problems with Access-Control-Allow-Origin
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to