All Questions
11
questions
0
votes
3
answers
1k
views
Retrieve Json Data as a IEnumerable
Goal:
Send a json data with many data from frontend to backend.
Problem:
When I send the data to the backend i do not retrieve it as a IEnumerable
What part of the code am I missing?
Info:
*Using ...
1
vote
2
answers
791
views
jQuery ajax call can't read json encoded data from CakePHP 3.8 (gets an empty array)
I have a weird problem with reading json encoded data returned by my CakePHP3 API in response to an ajax call from jQuery. I have already read over 20 posts on stackoverflow and elsewhere and the ...
0
votes
1
answer
326
views
AJAX function inside $.extend not working in jQuery 3
I need to extends jQuery (as a plugin). Problem is, $.ajax is not working inside the $.extend scope but outside the scope it is working fine. I am using jQuery 3.4.1 in my project.
My code:
(...
0
votes
1
answer
1k
views
jQuery ajaxPrefilter fires after request is sent
According to the description of jQuery.ajaxPrefilter(), it's supposed to get fired before the request is sent to $.ajax(), but from what I'm seeing in my project, the server API endpoint gets called ...
0
votes
1
answer
1k
views
jQuery 3 + Ajax + PHP send mail form not sending mail
I've been trying to re-write a jQuery + PHP send mail form but despite trying 3 methods it's still throwing a 500 Internal Server Error. I'm rewriting because I'm migrating the site to jQuery 3 and ...
0
votes
3
answers
296
views
set entity attribute (selecting a radio button) with ajax in Symfony 2.5
I want to integrate Ajax in my Symfony project (Symfony 2.5 and jQuery 3). I want to update an attribute of an Entity when I select a radio button. For now, I can get the id of the row that I select. ...
0
votes
1
answer
128
views
JQuery .on not working when content is being called from Ajax
I've got an issue that I see was solved for many people, but it seems that none of the solutions are working for me. Maybe it is my approach.
I've got an Edit page (for an Album), within, it has a ...
6
votes
1
answer
6k
views
TypeError: $.ajax(...).done(...).fail(...).complete is not a function
I suddenly started getting the following:
TypeError: $.ajax(...).done(...).fail(...).complete is not a function
My code:
this.sendRequest = function (type, extension, data, successCallback, ...
16
votes
1
answer
29k
views
jQuery 3 slim ajax basic example
I'm new to jQuery 3. The following is a basic fiddle, working with previous versions of jQuery, but does not work with jQuery 3
$(function() {
$.ajax({
url: '/echo/json',
type: '...
4
votes
1
answer
2k
views
How to abort a jQuery 3.0 AJAX request?
How to abort an AJAX request in jQuery 3.0?
this.r = $.ajax();
The promise does not have a abort method like in older jQuery versions
if(this.r && this.r.state() == 'pending')
{
this.r....
1
vote
1
answer
208
views
Will the .done method still be supported for jqXHR objects in jQuery 3.x?
I have noticed throughout my JavaScript code that AJAX requests are often performed using the following jQuery 2.x pattern:
$.ajax({
...
})
.done(function (data) {
...
});
where the code ...