Questions tagged as 'json'

1
answer

Problem when creating a json with a MYSQL query

PHP function ConectarBD(){ $conexion = mysqli_connect("localhost", "root", "", "adbsense"); if($conexion){ echo 'La conexión de la base de datos se ha hecho satisfactoriamente '; }else{ echo 'Ha sucedido un error ine...
asked by 20.07.2017 / 18:28
1
answer

Trying to get property of non-object (View :)

I have the following code, but when I am going to pass values to the view I get the error Trying to get property of non-object . Does anyone know what I'm doing wrong? In the control path: Route::get('test2', function(){ $client =...
asked by 20.07.2017 / 18:03
0
answers

send JSON to angle controller

Greetings, I am creating an editing environment for use cases, I use the FabricJS library. To create the elements of the diagram I use the following code: (I use images) var canvas = new fabric.Canvas('pizarra'); var HideControls = { '...
asked by 07.08.2017 / 19:42
1
answer

Update table (bootstrap-table) automatically when passing parameters of two input?

How can I make my table update automatically taking the value of two input in JS , I use JSON , and can pass the parameters to the query the problem is that my table is not updated. This is some code I use, researching I fo...
asked by 14.07.2017 / 20:09
1
answer

Parsear 2 jsonArray in Ruby

I have this little problem in Ruby, I have an api with this response: response: [ { waspurchase: 1, purchase_data: { gateway: "plazavipgate", gateway_text: "TEXT_PGS_PAYMENT_ASD_ASD_ASD", gateway_data: { car...
asked by 17.07.2017 / 18:18
1
answer

Show stored procedure values as json

Hi, I have the following problem, I am creating two functions to show queries in json format. This is my code: <?php include'db.php'; class Descuento extends Database{ public function listar_producto(){ $sql = "CALL sp_mostrar_p...
asked by 06.07.2017 / 06:07
1
answer

Get Json string from $ _POST in Yii2

I try to make a query with $ .post from JQuery doing the following: function consultaAjax(url, val){ arreglo = { id: val }; datos = JSON.stringify(arreglo); $.post( url, datos, fun...
asked by 01.07.2017 / 00:27
1
answer

Convert JsonArray to JAVA POJO android

With retrofit I use a JsonArray, I want to get elements from the Json Objects list this is my Json { "Codigo": 0, "FechaHora": "2017-07-11T11:23:11", "Mensaje": "Ok", "Data": [ [ { "Id": 1, "Nombre": "Hum...
asked by 12.07.2017 / 05:05
6
answers

How could I traverse an array of a JSON file?

I want to go through it with a loop for in JavaScript. let jsonObject = { "hoteles": [{ "viaje": { "origen": { "iataCode": "VL", "name": "Valencia",...
asked by 25.05.2016 / 17:44
1
answer

Ajax "fail" function does not read reply Json

Depending on whether the form is valid or not, " success " or " some errors " should appear in a div with id="results" . The problem arises when the form is not valid. In the " fail " Ajax function, only the " alert " is executed an...
asked by 13.06.2017 / 18:27