Questions tagged as 'json'

1
answer

Doubt when returning string json for FullCalendar event

I have a question. I'm using FullCalendar in a project. I can display the data registered in the bank normally. My problem is in the eventClick: I did so: var date = new Date(); var d = date.getDate(), m = date.getMonth(),...
asked by 29.06.2016 / 04:50
1
answer

Insert an array inside a Key Json

I need to get a Json as follows: { "razao_social": "Loja do Zé LTDA", "nome_fantasia": "Zé Store", "tipo": "J", "observacao": "Cliente com ótimo histórico de pagamentos.", "emails": [ { "email": "jose@ze...
asked by 10.06.2016 / 19:52
2
answers

Pick up JSON after sending a POST

I'm having trouble getting the response I get after submitting a request via POST function httpPost($url, $data) { $curl = curl_init($url); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS,...
asked by 19.05.2016 / 23:25
1
answer

Read JSON and print in html with angularJS

I am trying to print the data from a JSON file in html using AngularJS, running everything by XAMPP and in my htdocs / test folder has 3 files (index.html, main.js, test.json). The console does not show any errors, I even tried to debug by firef...
asked by 21.05.2016 / 14:22
2
answers

How do I get json response in javascript / jquery?

I have the link: https://dominio.com/apiJSON.php?data={"login":"[email protected]","senha":"Minhasenha","campanha":"ID 1234","mensagens":{"1":{"numero":2799999999,"msg":"Uma mensagem qualquer","data":"2015-10-19 01:07:52"}}} By pasting this l...
asked by 23.05.2016 / 13:56
1
answer

Recognize a JSONObject or JSONArray

I'm developing an app that consumes data from a WebService, which can return one or more records at a time. So far I've always been given a JSONArray, I'd "convert" it: JSONArray arrayDados = new JSONArray(dados); However, when I get only o...
asked by 13.07.2016 / 15:07
1
answer

AJAX appear divs according to database ID (MYSQL)

I'm trying to make every time I press the #buttonIdUltimoItem a structured DIV to get information from the database from the newest to the oldest according to ID . The problem is always repeating the last three IDs BUTTON: <button...
asked by 18.01.2016 / 17:07
1
answer

JqGrid, shows success in loading, but does not mount to Grid

I have grid on my site that I use JqGrid . What is happening is that when the data comes back from the request, they are formatted correctly because the JqGrid itself enters the loadComplete method, however, it does no...
asked by 21.01.2016 / 22:43
1
answer

Change JSON file on the server

I have the following form: <form method="POST"> Title <input type="text" onchange="Function()"> X <input type="text" onchange="Function()"> Y <input type="text" onchange="Function()"> /* others fields */ &...
asked by 05.12.2015 / 00:39
1
answer

Design pattern for combining data coming from different Databases

I'm getting data from two different databases and need to format this data for Json. The problem is not accessing the two banks and picking up the information. The problem is that my class got more complex than it should have. One of my Json...
asked by 28.01.2016 / 14:43