Questions tagged as 'json'

1
answer

How to retrieve via Ajax query result variables in PHP?

I made a query via Ajax which returned the variables within PHP : // Variaveis $nome = $Fetchi['nome']; $email = $Fetchi['email']; $tipo = $Fetchi['tipo']; $senha = "Digite uma nova senha..."; $ativado = $Fetch...
asked by 03.08.2014 / 14:52
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
2
answers

How to store the value of the indexes of this JSON in variable?

I have a function in php that returns this to me. [{"id":81,"username":"usuarioteste23"}] How can I save a Username and variable in a variable? Thank you.     
asked by 21.01.2016 / 11:57
2
answers

How to develop a private RESTFull API?

I need to develop a RESTFull HTTP API in PHP to serve as authentication for users of an Android application, the problem is that since it is a public distribution application I can not define any key in the code as for example: basic authenticat...
asked by 21.10.2014 / 20:35
1
answer

How to read data in Json on the server?

I have an Asp.Net MVC project and I am trying to reuse an Action that returns Json inside the server, but I am not able to work with Json returns in C #. I'm doing research, but I have not found anything that will help me so far. Code snip...
asked by 02.12.2015 / 20:33
2
answers

Android: read JSON data

I have a url that gives me the data in this format: {"to": "DKK", "rate": 7.4417, "from": "EUR"} I'm trying to read them as follows: JSONObject obj = new JSONObject(); JSONObject obj2 = obj.getJSONObject(site); String to = (String)obj2....
asked by 22.04.2016 / 23:12
2
answers

JSON performance to feed an entire site

Adapting a Drupal theme to pure HTML with a tight timeline, as expected, the code came out a bit more complicated than I'd like. In this way, I had the opportunity to explore JSON and some of its functionalities and I decided to create a d...
asked by 21.05.2014 / 14:12
2
answers

How to do autocomplete JqueryUi with PHP return multiple data?

I have two inputs , I'm using automplete in only one. The autocomplete code: $(document).ready(function() { $.getJSON('include/funcoes/carrega_cidades.php', function(data){ var dados = []; $(data).each(function(key, value...
asked by 11.12.2015 / 20:32
1
answer

Ajax function does not pass through success

My role calling my web service var email = document.getElementById("email").value var senha = document.getElementById("senha").value $.ajax({ url: "http://localhost:8080/Servidor/rest/service/loginCustmerUser/"+ email...
asked by 08.09.2015 / 23:53
4
answers

Search name file uploaded by json

I'm using a tool to crop an image sent by the user. When the crop is done, the file is saved in the folder and sends the response by json_encode . ItturnsoutthatIwanttograbonthe"name_file" returned by json, and save it in DB when I'm s...
asked by 07.10.2015 / 11:22