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.

This might be of some help:
http://cypressnorth.com/programming/cross-domain-ajax-request-with-xml-response-for-iefirefoxchrome-safari-jquery/

On Fri, Sep 2, 2016 at 9:58 AM, Teik Hooi Beh <th...@thbeh.com> wrote:

> 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
> <div id="info"></div>
>
> <script>
>
> var request = jQuery.ajax({
>     url: "http://www.thomas-bayer.com/sqlrest/CUSTOMER/3";,
>     type: 'GET',
>     dataType: 'xml'
> });
>
> request.fail(function(request, status, error) {
>     jQuery("#info").html("<p>Error</p>");
>     alert(request.responseXML);
> });
>
> request.done( function() {
>    alert('done');
> });
>
> </script>
>
> On Fri, Sep 2, 2016 at 11:28 AM, Corneau Damien <cornead...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I've been using jQuery.when() inside an %angular paragraph (
>> https://www.zeppelinhub.com/viewer/notebooks/aHR0cHM6Ly9yYX
>> cuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2Nvcm5lYWRvdWcvWmVwcGVsaW4tTm
>> 90ZWJvb2tzL21hc3Rlci9BdXRvLUNvbXBsZXRlLU11bHRpU2VsZWN0L25vdGUuanNvbg)
>>
>> I don't know if $ keyword would be usable, but there shouldn't be any
>> problem using jQuery.ajax()
>>
>> On Fri, Sep 2, 2016 at 8:23 AM, Teik Hooi Beh <th...@thbeh.com> wrote:
>>
>>> Hi,
>>>
>>> Anyone knows whether can I do a $.ajax() call in %angular?
>>>
>>> Regards
>>> Beh
>>>
>>
>>
>

Reply via email to