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 <[email protected]>
wrote:
> Hi,
>
> I've been using jQuery.when() inside an %angular paragraph (
> https://www.zeppelinhub.com/viewer/notebooks/
> aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL2Nvcm5lYWRvdWcv
> WmVwcGVsaW4tTm90ZWJvb2tzL21hc3Rlci9BdXRvLUNvbXBsZXRlLU11bHRp
> U2VsZWN0L25vdGUuanNvbg)
>
> 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 <[email protected]> wrote:
>
>> Hi,
>>
>> Anyone knows whether can I do a $.ajax() call in %angular?
>>
>> Regards
>> Beh
>>
>
>