Answer Posted / Vivek Soni
In CakePHP, you can use AJAX by making an HTTP request from JavaScript to the server. You can do this by using jQuery's $.ajax() method or native XMLHttpRequest. Here is an example using jQuery:nn```javascriptn$.ajax({n turl: '/my_controller/my_action',n tdataType: 'json',n tsuccess: function(data){n tt// handle the response from the servern t},n terror: function(xhr, textStatus, errorThrown){n tt// handle any errors that occurred during the requestn t}n});n``
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category