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 giniarya on 23-Aug-2019 05:19 pm
http://russiancallgirlgoa.blogspot.com/2019/07/tulika-jain-is-my-name-and-anybody.html https://delhimodelescortsagency.blogspot.com/ https://delhigirlescorts.blogspot.com/ http://modelescortsservicesdelhi.blogspot.com/2019/08/gurgaon-model-call-girls-service-who.html https://delhidollescorts.blogspot.com/2019/08/the-vacation-with-independent-delhi.html https://delhiindependentescortsagency.blogspot.com/2019/08/ http://www.modelescortsindelhi.flazio.com/ http://tulikajain.ukit.me/ https://mumbaimodelescorts90.blogspot.com/ https://www.thepullingplace.com/forum/member.php?u=10150 https://www.zumvu.com/tulikajain/about/
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by sada on 23-Aug-2019 10:01 am
The site is affectionately adjusted and spared as much as date. So it ought to be, a debt of gratitude is in order for offering this to us. Bills Limousine Service
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by DJ on 22-Aug-2019 11:14 am
I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. La Mer Dubai Shops
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by pioneerseo on 22-Aug-2019 07:57 am
Type your comment...It is amazingly decent to see the best subtle elements introduced in a simple and understanding way. 안전놀이터
  • Reply
  •  0 Like
  •  0 Dislike
  • Report