Re: ajax call

2016-09-04 Thread tolomaus
Ah indeed, that was probably the reason I never got it to work, thanks for pointing that out! -- View this message in context: http://apache-zeppelin-users-incubating-mailing-list.75479.x6.nabble.com/ajax-call-tp4024p4039.html Sent from the Apache Zeppelin Users (incubating) mailing list mailin

Re: ajax call

2016-09-03 Thread Corneau Damien
The CORS actually needs to be set where he is trying to fetch the XML, not on Zeppelin side. On Sun, Sep 4, 2016 at 4:58 AM, tolomaus wrote: > There is an option zeppelin.server.allowed.origins in zeppelin-site.xml to > configure the origin you want to allow, but I never got it to work. If I > r

Re: ajax call

2016-09-03 Thread tolomaus
There is an option zeppelin.server.allowed.origins in zeppelin-site.xml to configure the origin you want to allow, but I never got it to work. If I recall well it was only partially implemented. I worked around this problem with jsonp: $.ajax({ url: "http://...";, data: {a: "xxx",

Re: ajax call

2016-09-01 Thread Corneau Damien
If you look into your console, you will see that there is a Cross Domain error. XMLHttpRequest cannot load http://www.thomas-bayer.com/sqlrest/CUSTOMER/3. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9000' is therefore not allowed access.

Re: ajax call

2016-09-01 Thread Teik Hooi Beh
I believe this simple test should work but it isn't on my Zeppelin. Anyone could help to cut and paste to try, to be sure my Zeppelin is behaving correctly. And BTW, anyway to turn on more logs, could not find anything in zeppelin or angular log. %angular var request = jQuery.ajax({ url: "

Re: ajax call

2016-09-01 Thread Corneau Damien
Hi, I've been using jQuery.when() inside an %angular paragraph ( https://www.zeppelinhub.com/viewer/notebooks/aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2Nvcm5lYWRvdWcvWmVwcGVsaW4tTm90ZWJvb2tzL21hc3Rlci9BdXRvLUNvbXBsZXRlLU11bHRpU2VsZWN0L25vdGUuanNvbg ) I don't know if $ keyword would be usable,