Skip to main content

All Questions

Tagged with
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 ...
Ramya Shivu's user avatar
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 =...
bungee1980's user avatar
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":...
happy kaul's user avatar
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": [ ...
LDP97's user avatar
  • 1
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")....
JonSnow's user avatar
  • 319
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: ...
Yogesh Pednekar's user avatar
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(...
Masudul Hasan Shawon's user avatar
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 ...
salik saleem's user avatar
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 ...
stepheniok's user avatar
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 ...
Shaw's user avatar
  • 31
-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 ...
Christian's user avatar
-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); ...
Daniel Morais's user avatar
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 ...
V.M's user avatar
  • 71
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 ...
Nancy Collins's user avatar
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) { ... });...
Diego de Lima's user avatar

15 30 50 per page
1
2 3 4 5 6