XMPP JavaScript Library

Cakephp isAjax and AngularJS issue

JavaScript, Sachin Puri, 2017-01-31 22:27:29

 

If you are using Angular JS to send AJAX request and Cakephp isAjax function is not considering this request as AJAX then may be this can help you.

In you request add following header


headers:{'X-Requested-With':'XMLHttpRequest'}

Example

$http({method:'GET',url:'http://www.somedomain.com/',headers:{'X-Requested-With':'XMLHttpRequest'}}).success(function(data){

    //Write your code here to handle response data

}}]);

 

Add Your Comment
   
    Yes! I want to receive all comments by email

  by DJ on 26-Jun-2019 10:02 am
Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing... Oahu family photographers
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 25-Jun-2019 12:17 pm
I might suggest solely beneficial in addition to trusted facts, and so find it: Best SEO company Pakistan
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by adnan on 25-Jun-2019 10:13 am
I was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. jokerlai jokerbgm lai lai whatsapp song 2019
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by adnan on 24-Jun-2019 12:05 pm
I was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. cartoon movies
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by adnan on 24-Jun-2019 10:46 am
I was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. jaan new marathi whatsapp dj remix status video 2019 remix song whatsapp
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 23-Jun-2019 09:07 pm
I finally found great post here.I will get back here. I just added your blog to my bookmark sites. thanks.Quality posts is the crucial to invite the visitors to visit the web page, that's what this web page is providing. istanbul seo
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 23-Jun-2019 04:55 pm
This is very useful, although it will be important to help simply click that web page link: custom packaging boxes
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 23-Jun-2019 03:46 pm
This is very useful, although it will be important to help simply click that web page link: SUC Elibrary
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 23-Jun-2019 01:15 pm
I understand this column. I realize You put a many of struggle to found this story. I admire your process. شركة نقل عفش بالجبيل
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 23-Jun-2019 12:40 pm
This is very useful, although it will be important to help simply click that web page link: hasta yatağı
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 20-Jun-2019 01:04 pm
Very informative post ! There is a lot of information here that can help any business get started with a successful social networking campaign ! Vinyl Stickers
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 19-Jun-2019 06:23 pm
I understand this column. I realize You put a many of struggle to found this story. I admire your process. 먹튀사이트 추천
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 19-Jun-2019 05:34 pm
I can recommend primarily decent and even responsible tips, as a result view it: 릴게임사이트
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 19-Jun-2019 08:20 am
In this case you will begin it is important, it again produces a web site a strong significant internet site: 123 movies
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 18-Jun-2019 12:41 pm
This is very significant, and yet necessary towards just click this unique backlink: 123movies
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 13-Jun-2019 06:59 pm
Hi to everybody, here everyone is sharing such knowledge, so it’s fastidious to see this site, and I used to visit this blog daily car rentals islamabad
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by sohail khatri on 11-Jun-2019 04:47 pm
Please share more like that. big tits porn sites
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 11-Jun-2019 12:47 am
I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end. I would like to read newer posts and to share my thoughts with you. 메이저사이트 코드
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 10-Jun-2019 11:11 pm
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own Blog Engine blog now. Really the blogging is spreading its wings rapidly. Your write up is a fine example of it. weleda skinfood
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by sohail khatri on 28-May-2019 06:21 pm
Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates. hulu account login password
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by sohail khatri on 26-May-2019 02:36 pm
I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. used test equipment
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 25-May-2019 05:41 pm
Your blogs further more each else volume is so entertaining further serviceable It appoints me befall retreat encore. I will instantly grab your feed to stay informed of any updates. Mesa locksmith
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 24-May-2019 10:29 pm
The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought you have something interesting to say. All I hear is a bunch of whining about something that you could fix if you werent too busy looking for attention. automotive locksmith Scottsdale
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 24-May-2019 02:03 pm
We are tied directly into the sate’s renewal database which allows us to process your request almost instantly. las vegas seo services
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by sohail khatri on 23-May-2019 02:30 pm
I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. I truly adored reading your posting. Thank you! thesportsx
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by giniarya on 20-May-2019 12:57 pm
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 19-May-2019 05:29 pm
This is also a very good post which I really enjoyed reading. It is not every day that I have the possibility to see something like this.. Teleserye
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by shrine on 17-May-2019 12:32 pm
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by sohail khatri on 16-May-2019 02:21 pm
Going to graduate school was a positive decision for me. I enjoyed the coursework, the presentations, the fellow students, and the professors. And since my company reimbursed 100% of the tuition, the only cost that I had to pay on my own was for books and supplies. Otherwise, I received a free master’s degree. All that I had to invest was my time. how to install radon system
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by sohail khatri on 16-May-2019 01:24 pm
Thanks for the best blog. it was very useful for me.keep sharing such ideas in the future as well. instant radon test
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 15-May-2019 08:18 pm
Very educating story, saved your site for hopes to read more! online cricket
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by sohail khatri on 15-May-2019 05:12 pm
You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! signs of radon in house
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by sohail khatri on 14-May-2019 05:24 pm
Writing with style and getting good compliments on the article is quite hard, to be honest.But you've done it so calmly and with so cool feeling and you've nailed the job. This article is possessed with style and I am giving good compliment. Best! www.vimax.pk
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by get quality backlinks on 23-Feb-2019 02:27 pm
I read a article under the same title some time ago, but this articles quality is much, much better. How you do this..
  • Reply
  •  0 Like
  •  0 Dislike
  • Report