[AngularJS] Re: angularjs issue

2017-07-10 Thread Sander Elias
Hi, Eval is a reserved word in JS, so that might be the culprit. If that's not it, put the thing in a plunk, and I will help you out. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this

[AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-30 Thread amadese
For persons who encounter the same problem, I found a solution by using the XDomain third-party library. You have to implement a proxy.html file on the remote server where the service is located, and call the file in a script tag in the main application.

Re: [AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-29 Thread Adrian Lynch
I've recently battled this in CFML too. In my CF application I added: http://domain-making-request-goes-here:8889";> #serializeJSON(session)# The in the client application: http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js "> $(function() { $("button").click(function() { $.a

[AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-29 Thread Sander Elias
Amadese, you can’t use Access-Control-Allow-Origin:'*' in a lot of circumstances. In stead of a star, you must put the name of the domain you are calling in there. in your case, that would probably be: 'dev.testmyserver' Hope this helps a bit, Regards Sander ​ -- You received this message b

[AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-29 Thread amadese
I have tested in Chrome and I obtain the message: XMLHttpRequest cannot load http://dev.testmyserver2/myapp.cfc?method=getUserFromLogin&login=test'. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://dev.testmyserver' is therefore not allowed access. i

[AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-29 Thread amadese
I have tested in Chrome and I obtain the message: XMLHttpRequest cannot load http://dev.testmyserver2/myapp.cfc?method=getUserFromLogin&login=test'. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://dev.testmyserver' is therefore not allowed access. i

Re: [AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-28 Thread Matteo Moci
see http://enable-cors.org/server_apache.html It would be easier to debug it doing requests from command line, like curl. In this way you see the headers replied by the server, that should include Access-Control-Allow-Origin "*" On Tue, Oct 28, 2014 at 11:40 AM, Sander Elias wrote: > Hi Amades

[AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-28 Thread Sander Elias
Hi Amadese, You seem to miss the needed headers for CORS, the server needs to provide those. (your app seems to to ok, as you get an response to an option request.) With the needed headers missing, the browser will come to a full halt on your request, and drop things off while no data comes to

[AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-28 Thread amadese
Hi, If I use Firebug, no erro appear, the request OPTIONS appears, with the data, but in my alert the status value is 0, in the header I can seee: Response header AllowGET, HEAD, POST, TRACE, OPTIONSConnectioncloseContent-Typetext/plain; charset=UTF-8DateTue, 28 Oct 2014 07:36:17 GMTServerApach

[AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-27 Thread Sander Elias
Hi Amadese, If you open the developer tools in your browser, what is the error you are getting? Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to a

[AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-27 Thread amadese
Thanks for the link. I have tried it, but the problem is always present. I have tried server side Coldfusion and/or client side. :-( Le lundi 27 octobre 2014 12:42:55 UTC+1, Sander Elias a écrit : > > Hi Amadese, > > CORS is mainly a server side problem . Have a > look

[AngularJS] Re: Angularjs issue - $http.get not working and changed into OPTIONS - Cross domain

2014-10-27 Thread Sander Elias
Hi Amadese, CORS is mainly a server side problem . Have a look at the site I just linked. Probably the answer for your server is right there. Regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe