Questions tagged as 'json'

0
answers

Pass variable from PHP to JS via JSON

I'm trying to display the result of a select run by PHP in an external file, in an HTML form. I am using JSON to receive the variables, however nothing is displayed. Can someone help me figure out the error or explain me a better way to view t...
asked by 23.12.2016 / 17:35
1
answer

problems with php, json, javascript and mysql

I'm trying to get data from mysql to display on html with php using json , but it's going wrong, it brings data but it does not display, if I press f12 it shows data from the database but does not display the data....
asked by 28.10.2016 / 21:21
2
answers

How to populate a DropDownList from another DropDownList

I need to know how to populate a DropDownList from another DropDownList. Example: I have a DropDownList named Project that takes the information from my DB. When I select for example "Project 1" I need in my second DropDownList to load all Sub P...
asked by 23.07.2015 / 13:54
1
answer

Bookmarks in google maps searching the database

How would you fill in state markers in google maps, fetching latitude, longitude and title data from a database. Today I already have this function working, but the state data is fixed in a javascript. Below is the code I have today: fun...
asked by 27.10.2016 / 01:21
3
answers

Local communication through online application

I am developing a system for ordering from a snack bar / pizzeria. Let's suppose that the waiter places the order with the Tablet ( Android ) on the customer's desk or the customer goes and requests the receipt ( Windows ). Depending on the requ...
asked by 09.10.2016 / 01:23
0
answers

Document structure

Hello, I'm starting to learn MongoDB, and I have a question I did not find anywhere: Documents from the same collection may have different structure. Example: { "id": "1", "name": "John" }, { "id": "2", "name": "Mary", "...
asked by 25.10.2016 / 16:46
1
answer

Listing the return of a ViewBag to the View?

Following the instructions in this post ( Return the data to the View using Json.net or javascript- asp.net mvc ) replied by Loudenvier looks like this: Class: public class TB_RECEBE_IMAGENS { public int Id { get; set; } public s...
asked by 25.10.2016 / 03:39
0
answers

Rest API in PHP - how to work with terminated routes in .json?

I'm creating a Restful web service in PHP. I'm not using any framework. I am following the recommendations of standards or best practices for developing web APIs, suggested by the White House . On their website, in the first line, we find...
asked by 27.10.2016 / 16:11
1
answer

Convert String to JSON

I would like some help to understand this conversion that I am trying to do but it is generating an exception, see: protected void onPostExecute(String resultado) { if(resultado.contains("login_erro")) { Toast.m...
asked by 27.11.2016 / 16:01
0
answers

JQuery / Ajax / JSon - Get to the JSon

I have an array and I need to get to it with jquery / ajax, the problem is that I do not know how to get to it, it's being created by php $json = Array(); then I make a push array like this: array_push($json, array( 'nome'=>'test...
asked by 19.10.2016 / 17:31