Questions tagged as 'json'

3
answers

Receive json mysql data

Hello, I have the following function to read DB data mysql. Here I call - > $clientes = DBRead('clientes', null, 'nome, telefone1'); Here I display - > echo $nam = json_encode($clientes); Result: [ { "nome":"Davi",...
asked by 30.03.2016 / 17:00
2
answers

Get elapsed time of a string

I wanted to calculate the time now with what I get from a string like this: 2016-04-16T15:55:53Z But the time is three hours higher than our spindle, I wanted some output like: Já se decorreu 0 horas, 0 minutos e 0 segundos...     
asked by 16.04.2016 / 20:09
1
answer

PHP variable in JS within the While

I am creating a chart using Chart.js and PHP, I would like the value to come from an array in PHP with the index of a JS variable. This is the code I tried to do. <script type="text/javascript"> var ctx = document.getElementById("piecha...
asked by 14.01.2016 / 14:34
1
answer

FOR with getJSON file URL

I need to make a FOR with getJSON file. How is the form correct? selectOcorrencias = $.getJSON("http://izicondominios.com.br/appOperacoes.php?operacao=selectOcorrencias&condominioID=2"); for (seOcor in selectOcorrencias){...
asked by 20.12.2015 / 21:40
2
answers

Extract JSON object item with Angular.js

I have an Angular app that uses the Maps API to fetch latitude and longitude, but I can not get latitude and longitude separately. My application works as follows, the user types the zip code and the system using the ViaCEP API loads all data...
asked by 10.03.2016 / 20:16
1
answer

Format JSON - PHP and MySql?

I need to mount a json as follows: [ {"SUPERMECADO 1": {"telefones": [ "1999999999","1999999991"]} }, {"SUPERMECADO 2": {"telefones": [ "1999999992","1999999993"]} } ] But currently my SQL is returning a array like...
asked by 01.05.2017 / 16:24
3
answers

Incorrect date on return of json

Good afternoon, The return of Json brings the badly formatted date="/ Date (1420077600000) /", how to deal? {"TB1":1,"DTADMISSAO":"\/Date(1420077600000)\/"} ThisisthesectionwhereIsettheDatefield:$.ajax({url:"ObterFuncionario",...
asked by 22.10.2015 / 18:46
2
answers

manipulating DataTables.net data with Json [how to manipulate json to display img in column]

I'm putting together a table with the JS framework DataTables I process the data via Server-side through JSON In the first column I would like to display a photo, the name of this photo comes via JSON. How to do it? Example of...
asked by 19.10.2015 / 20:29
1
answer

How to save a JSON locally?

Direct question: What is the best way to save a JSON file locally and how to do it? Details: I have a web application that receives user data using the Facebook API (Javascript SDK), I need to save this data to a JSON file locally. After sa...
asked by 27.10.2015 / 19:46
1
answer

Return JSON with ASP.NET/C#

I have the following codes Default.aspx <script type="text/javascript"> /* Relógio */ function startTime() { $.ajax({ type: 'POST', url: 'Default.aspx/GetNetworkTime',...
asked by 26.01.2015 / 18:42