Questions tagged as 'json'

2
answers

array of simple arrays for json_encode

I need to create a json document, with the following structure: [ { "Name": "Lacy", "Email": "[email protected]" }, { "Name": "Chancellor", "Email": "[email protected]" }] Currently, I have the following arra...
asked by 20.02.2015 / 22:42
1
answer

Dynamic Search with JSON - PHP - MYSQL

I've been searching the internet but I could not find any references, perhaps because I was searching wrong, so I resorted to creating this post. I have a query in the database (MySql with PHP) that returns me a list of products with several...
asked by 08.12.2014 / 20:43
1
answer

How to show table in JSON return?

I need to return an insert pass parameter to a page and load it into a specific div , I tried something like this: var formData = new FormData(this); $.ajax({ url: formURL, type: 'POST', data: formData, mimeType: "multipa...
asked by 19.08.2015 / 16:36
1
answer

JSON cut when sending by post with AJAX

I'm using Angular to make a database entry, I get the data from my inputs I put into an object and I transform it into a JSON and I send it by post, but it happens that my JSON is cut and I do not do the minimum idea of why. var meuJson = ang...
asked by 04.04.2014 / 19:08
1
answer

How to handle Ajax requests with business error?

I searched the internet and still did not find a mature enough answer to a problem. I have an Ajax request and taking errors thrown by the application as a possible connection crash, for example, I do not want to throw an exception if I have...
asked by 12.12.2014 / 21:47
2
answers

Create a table with sorting using DataTable

I am creating a table and need to give the option to sort the table by the field of your choice. I tried to use the dataTable the data is padded correctly in the table but when I click on a header to sort, filter, or any other function of the da...
asked by 15.11.2015 / 19:54
2
answers

how to read return variables using json curl and php

My problem refers to the integration with the sky and I've rolled everything, but without success. I read this post: Request in Cielo's PHP API using cURL "I understood" what I said in the post and did so: <? //string json contendo...
asked by 27.05.2017 / 12:39
2
answers

Problems with $ http and ng-repeat angularjs beginner $$ hashKey

Hello, I'm a beginner in Angular and I'm finding it very nice, my problem is this: I have a ng-repeat that works fine when I get the data source of a javascript variable like this: var alertsq = [ { "alert":"mediun", "nt":"28",...
asked by 10.12.2014 / 00:26
1
answer

.json file is not created in angularJS

I created a controller and a service. Here are some examples of what's happening: Controller eventsApp.controller('EditEventController', function EditEventController($scope, eventData){ $scope.event = {}; $scope.saveEvent =...
asked by 03.05.2015 / 21:56
1
answer

Ajax locking page exchange (LongPolling)

I am trying to complete a connection using Long Polling, where the browser sends a request to the server and is waiting for a response. To prevent this port from being infinitely open, I created a routine so that every 10 seconds the server send...
asked by 17.10.2014 / 16:03