Questions tagged as 'json'

1
answer

generate a json php

Hello I have a problem, I believe that you can help me, is the following I need to have a json of this gender { "nodes":[ {"name":"Barry"}, {"name":"Frodo"}, {"name":"Elvis"}, {"name":"Sarah"}, {"name":"Alice"} ], "links":[ {"source":"B...
asked by 25.05.2016 / 12:47
3
answers

No return Json to Ajax

I do not get Json's return from Ajax. Any idea what that might be? Ajax.js $.ajax({ type: 'POST', dataType: 'json', url: "crud/insere.php", data: dados, success: function(data) { var objeto = JSON.parse(data); alert(objeto.id); }...
asked by 12.05.2016 / 21:10
2
answers

Help with json and adodb in PHP

Good afternoon, The following code returns me in json ... but it's in pdo .. what would it be like in adodb? $users = $stmt->fetchAll(PDO::FETCH_OBJ); echo '{"users": ' . json_encode($users) . '}'; edit: I tried this, but it does n...
asked by 12.05.2016 / 19:36
1
answer

I do not get Json's return in Ajax with PHP [duplicate]

I can not get out of the way, what's wrong? I do not get Json's return in Ajax. RegisterClient.php Ajax.js $.ajax({ type: 'POST', dataType: 'json', url: "crud/insere.php", data: dados, success: function(data) {...
asked by 12.05.2016 / 17:57
1
answer

ajax returning white

I once again here. Let's go. Well, my problem is this: I am passing values to my method in php via ajax, but they are not returning anything to me, I did some testing and it is working on the next line I'm going to post the test code (...
asked by 16.04.2016 / 00:58
1
answer

Pass array from a UITableView to another UITableView

Talk the guys! It is difficult to get the value of a array in a uitableview and move to another uitableview . There is no error appearing, but it does not print anything on the console when accessing the next uitableview...
asked by 17.04.2016 / 01:25
1
answer

How to fetch data in JSON in this particular code

I need to do exactly the same as requested in this post , get Json data and return in a specific field. User Jeffson Silva did exactly what I needed and made available on this Example . I just ran into the following problem: I can not fetch...
asked by 08.04.2016 / 18:21
1
answer

Extract data in JQuery

I'm having a problem with Ajax ... I can not extract the data. They are returned, however, at the time of printing, nothing appears. The following codes: Model: function livros() { $this->db->select('idobras,titulo,idbib_exempla...
asked by 14.04.2016 / 16:12
0
answers

how to use sharedpreferences

Good Afternoon will someone give me an example of how to create sharedpreferences ... I'm in a bad situation where .. I validate the user and password on the server using php via webservice and after validation I need to show the user to their c...
asked by 04.04.2016 / 18:24
1
answer

How to execute a URL passing C #

Hello, I'm doing for study purposes, a way to fetch and bring vehicle information from the api's direct fipe table ( link ) . What I can not do at first is to execute the URL passing parameters. For example: I need to request the list of v...
asked by 12.04.2016 / 22:09