Hey man, this is what I wanted, thanksssss El miércoles, 4 de julio de 2012 02:30:01 UTC-6, Jérémy moresmau escribió: > > I've been struggling for a while to make an $http.post work with my > CodeIgniter PHP framework. Actually you can't access your data by reading > $_POST or $_GET. > you need to go through "php://input", server-side. > This blog saved my day : > http://www.cleverweb.nl/javascript/a-simple-search-with-angularjs-and-php/ > > I hope it'll solve your problem, > Jeremy > > On Saturday, 23 June 2012 15:41:31 UTC+1, Josh Kamau wrote: >> >> Hi guys , >> >> Please tell me why this code is not working.. Its jquery equivalent is >> working. >> >> //ng code... not working >> $http.post(url, data).success(function(data, status){ >> alert("Status:"+status+" Data:"+data.message); >> } >> >> //jquery code ... this is working >> $.post(url, data, function(data, status){ >> if(status == "success"){ >> alert( "Data Saved: " + data.message ); >> } >> >> Now, both codes hit the database... but the data values are empty in case >> of angular code. >> >> What am i doing wrong? i want to use angular all the way and i feel bad >> when i have to fallback to jquery for ajax stuff. >> Am using angular 1.0.0 >> >> Josh. >> >> >>
-- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
