last day (14 days later) » 

2:53 PM
2
A: how to convert AJAX $http call to Angular.JS

messerbilljust have a look at the docs https://docs.angularjs.org/api/ng/service/$http $http.get('http://autoc.finance.yahoo.com/autoc', {dataType: 'jsonp', jsonp: 'callback', jsonpCallback: 'YAHOO.Finance.SymbolSuggest.ssCallback'}).success(function(data){ alert("yes"); });

 
Thanks for the hint. I updated the JsFiddle but still does not work :(
 
what errors do you get?
 
Just run the JsFiddle and you will see the error on the JavaScript console. It's somewhat about mixed HTTP and HTTPS call and a syntax error which I can not find.
PS: I'm using Chrome on MacOS.
 
this is because you try to load scripts from http to a https page. do you have loaded you angular and jquery to your harddisc locally?
 
Nope, I only use JsFiddle. You have to use this URL: d.yimg.com/autoc.finance.yahoo.com/autoc And in this JsFiddle it works fine. hmmm
 
2:53 PM
hm at first you should not develop with jsfiddle. But if you do, use AngularJS as library and not jquery and dont include external scripts. this should work, but like i said, better develop on your local system. and dont forget to inject the $http correctly - docs.angularjs.org/guide/di
 
true, but still I wonder why the other example works fine
 
did you fix it now?
ok
so why are you working on jsfiddle first?^^
just gonna smoke a cigarette
^^
ok
ready now
are you from germany?
 
3:26 PM
bro
i will go home soon
i am still at work
so if you need help write it better now
otherwise i will return at 12 o'clock
GMT
or 1 a.m. maybe
 

last day (14 days later) »