Questions tagged as 'json'

1
answer

how to load read JSON file in JS and load search result in HTML code?

I made this javascript code in a .js file, where my intent is to get the data from a JSON file and use it in my HTML. I do not know how to use the $ .getJSON function in my code to do this and put one thing together. Thanks for any help. funct...
asked by 13.06.2017 / 20:33
2
answers

Non-fiscal thermal printer EPSON does not work in a shared way with USB and LPT

I'm creating a system in PHP and we're entering the printing phase with non-fiscal thermal printers. In principle I did not find Epson support for PHP printing and in searches I found the component mike42 / escpos-php . Using it I got networked...
asked by 10.06.2017 / 01:11
1
answer

jQuery read json and display sub-levels only if they exist

I would like to do a validation, make a for the first level and second level of a json, the second level should be printed only if there is this second level in the item of the current array. Ex json down: content = { "primeiroNivel0": {...
asked by 12.07.2017 / 22:58
1
answer

Is it possible to execute an external page on the client and get the JSON result using PHP?

Good afternoon! It is the following, I have a URL of a forum on the Internet that when it accesses it it returns in the JSON format the last posts viewed by a certain user. Since it is external, I do not know how it works and I believe it is...
asked by 16.05.2017 / 20:52
2
answers

Infinite Scroll with JSON + Javascript data

I am developing an application where I get the data via JSON and model them via javascript, I need a help to create an infinite scroll in javascript, showing 10 result and when it arrives at the bottom of the page it loads 10 more, until...
asked by 24.03.2017 / 22:22
1
answer

JsonFormat changing date in a get request

I have a web service in java using Spring Boot, in a class I have an attribute of type date and I use JsonFormat to format the date and be able to convert on the client side, using Gson. However, even setting the locale for the zone of Brazil, w...
asked by 09.04.2017 / 01:09
2
answers

Return with json array showing only first record

<?php //database configuration $dbHost = '127.0.0.1'; $dbUsername = 'root'; $dbPassword = ''; $dbName = 'master'; //connect with the database $Mysqli = new mysqli($dbHost,$dbUsername,$dbPassword,$dbName); $arr = a...
asked by 11.04.2017 / 14:54
1
answer

Get data json print in real time

Hello friends, good night! I have this code working perfectly so I need it to print the variable type every 5 seconds and they told me that I had to do this with ajax but I do not know how to do it!    json [ {"latitude": "-3.3462, -60....
asked by 14.04.2017 / 07:40
2
answers

How to leave the json of two or more object classes at the same level in Asp.Net MVC

I have 3 classes being them Contact, Sector, Unit so I have Contact with one-to-many relationship with Sector and Unit generating Json with many layers, making it impossible for JQuery Bootgrid to access these fields. Checking JQuery Bootgrid...
asked by 24.02.2017 / 00:24
1
answer

Login with AJAX and PHP with database (Why is it going wrong?)

$(document).on("click","formlogin",function(evt) { $.ajax({ type:"GET", url:"http://localhost:8080/ProjetoXDK/appModelo/www/php/entrar.php", data:{ var cpf = $('#cpf').val(), var...
asked by 22.10.2017 / 20:29