All Questions
88
questions
1
vote
2
answers
4k
views
Request payload is [Object Object] in the AJAX post request triggered
I am sending a ajax request with the following data. The data here is an object and I intend to send an object itself (not stringified JSON). But when I see the request in browser, the request payload ...
2
votes
1
answer
71
views
how to get values from php arrays using ajax
i am making an ajax call to a php page. the php selects from the database between 2 dates.
this is the php:
if(isset($_POST['fromdate'])){
$fromdate = $_POST['fromdate'];
$todate =...
0
votes
1
answer
735
views
how to display data into datatable (json object into object)
This is the format i want to display balance into datatables. i didn't find any solution for this problem
{
"info": {
"makerCommission": "10",
"takerCommission":...
0
votes
1
answer
608
views
Can't access variables of JSON response from REST-API in Javascript
I have a problem getting access to the variables in a JSON-File. I get the file as a response from a REST-API. Here you can see the JSON-File:
{
"_embedded": {
"events": [
...
0
votes
1
answer
68
views
How to send values as form object via AJAX?
We're experiencing problems with special characters from a pw field send as string via AJAX.
Current situation is this:
function resetPW() {
var username = encodeURIComponent($("#email")....
0
votes
1
answer
184
views
How to create dynamic JSON. Filter data and create appropriate JSON objects key and values pairs
How to create dynamic JSON as per input. Filter data and create appropriate JSON objects key and values pairs
Below is the database.
Below is the code which had tried but won't work...
success: ...
0
votes
4
answers
237
views
looping a javascript object inside a loop of custom object
First of all I'm beginner in javascript. I have this data data.responseJSOn.errors -
Currently I'm displaying the errors like this way -
var errors = data.responseJSON.errors;
console.log(...
1
vote
1
answer
40
views
Ajax returning multiple output?
I simple want to get data from product.json file.
in which i have store two object
(1) object for CCTV camera products
2.(2)object for Laptop products.
I want to get data of LAPTOP products when ...
1
vote
1
answer
343
views
JavaScript - Coverting invalid object into json object
I am currently making an ajax call to return data from an API. The return value is an object of an array. This format is an invalid object so I am having issues accessing the data that is being ...
0
votes
0
answers
78
views
I can't read JSON file in Javascript and return the object
I have gone through multiple posts regarding the matter but can't seem to solve the issue.
I had a method getData() that returned an object with a property called results. This property contained an ...
-3
votes
2
answers
45
views
Json object array
.ajax({
cache: false,
url: '/Dashboard/ListofNames',
data: {
charSearch: txtboxvalue
},
success: function (res){
var obj = JSON.parse(res); //this object contains 1 ...
-3
votes
1
answer
15
views
get responseText in ajax [duplicate]
I just want to get ajax feedback
var result = $.ajax({
url : 'linkAPI',
type : 'get',
dataType: 'JSON'
});
console.log(result);
...
1
vote
1
answer
50
views
Find Object Array and its Properties from Ajax Post Request
I'm sending an AJAX request to an internal PHP and receiving back an object. The object has properties of "data" and "status", yet when I try to access them, it does not return anything. How can I ...
1
vote
2
answers
594
views
Add a (child) button element to a div for each array in a JSON object, and add child buttons (to the array buttons) for each object within the arrays
I am trying to create a button for each JSON array withing the JSON object. There are 2 arrays. I then want to append child buttons onto these 2 buttons for each object within the arrays (for which ...
0
votes
1
answer
20
views
What is the best way to create a JSON or Object into another Object in Javascript?
I'm getting a result from a database using ajax, like the code below:
success: function (dados) {
$.each(dados, function () {
$.each(this, function (index, value) { ... });...