Questions tagged as 'json'

1
answer

Select code in dropdown and show description in TextBox JSON

Good morning, I have a small problem to show data results of a project. On the one hand I have a table in Mysql called WORKS, with the fields CODE and DESCRIPTION. In HTML, I have a dropdown list with search engine, in which all the cod...
asked by 05.06.2017 / 16:32
2
answers

Highcharts and ajax

I'm trying to create a graphic with highcharts from some data that I get with ajax by json . This is my .js : function graficoData (data) { $('#chart1').highcharts({ chart: { type: 'column' }, title: { text: 'E...
asked by 25.06.2017 / 20:03
2
answers

because if you do not have errors, the console does not show anything with this JSON query in the html

$(document).ready(function(){ var latit; var long; var kTemp; var ip = 'http://ip-api.com/json'; $.getJSON(ip, function(data){ latit = data.lat; long = data.lon; }); //create API with geolocation...
asked by 31.05.2017 / 21:32
3
answers

Pass variable when clicking on a listView item to another activity [duplicated]

Good morning. I have this query because I am too new programming in Android Studio and I do not know where to go. I have a listView that I load with data from a database that I have on my PC and I obtain the data by a php file. That's ok, the...
asked by 22.05.2017 / 05:20
2
answers

How to read the data of a php object?

I am doing a project where I am consuming an object that they send me with a lot of data. in the following way $cliente = new SoapClient("webservice"); $respuesta = $cliente->metodo(); var_dump($respuesta); What the answer shows is somet...
asked by 23.05.2017 / 23:03
2
answers

Vue API client does not respond to the JSON request

I am making a request to API with Vue to adapt it with Rail , but when I print the data on the screen it sends me empty, this is the connection to API : main.js: var urlAPI = 'xxxxxxxxxx'; new Vue({ el...
asked by 22.05.2017 / 19:19
2
answers

help with PHP + AJAX + JSON

Good! I tell you my problem. I make a request to a php file with AJAX, in this file I bring a long text from my database (mysql) and I save it in a php array, then I pass it to js with json_encode (); The problem I have is that there are t...
asked by 20.05.2017 / 02:01
1
answer

Map an object by JSON

I am mapping an object from my controller, I sent it through the GET method by JSON. The object generates it well, check that it brings data. The communication is correct, it works well if I send an empty object or a text, the problem is when I...
asked by 16.05.2017 / 14:30
1
answer

JavaScript object to Json node network

I am trying to pass a javascript object generated by my network node to json format. The object script that is obtained is an hour and minutes that is written on the screen, for example "13:02" I want to get a json type {"hora" : "hh:mm...
asked by 17.05.2017 / 10:10
0
answers

Change the query to PDO

I have the following code that generates a JSON file, it works fine, but I must change it to send the data between the controller and the model. include "conex.php"; $sql= "select * from timetables"; $query = $con->query($sql); // Fetch t...
asked by 30.04.2017 / 01:25