Questions tagged as 'json'

3
answers

I can not retrieve JSON in jQuery

I can not display uf in the following situation: $.post("<?php echo site_url('Welcome/viacep'); ?>", {cep: cep}, function(dados){ alert(dados.uf); }, 'json' ); But when I change the alert to alert(da...
asked by 27.08.2017 / 22:40
1
answer

Create graph with Chartjs inside the controller of another js file

I'm trying to solve a problem with my web page. Here is some information about it: The page is to generate graphs in different models (area, line, bar); The user, from a select choose which type of graph to create (area, line, bar); Data...
asked by 05.09.2017 / 16:55
1
answer

Exporting data in json or txt, in python?

I need help learning how to export data from an object. At first I need to export in type "txt" and / or "json", but I could not succeed in either. The code: #coding = utf-8 import json . . . def arquivo(lista_nomes): print(json.dump...
asked by 10.09.2017 / 02:35
1
answer

Select with php javascript ajax json

<script src="http://yui.yahooapis.com/3.12.0/build/yui/yui-min.js"></script><scriptsrc="js/jquery-3.2.1.min.js" ></script> <script type="text/javascript"> function run(){ var id = $("#id_Turma").v...
asked by 26.08.2017 / 00:11
0
answers

Receiving PHP response in AJAX

Friends, I am developing a script to send an email according to the users' choices. Below is the ajax that sends: $.ajax({ type: "POST", url: "inc/enviar.php", /* endereço do script PHP */ async: true,...
asked by 22.08.2017 / 18:40
0
answers

Angular request does not send post

Good evening !! next ... I'm making asynchronous requests with angularjs and it works if I use get and params, but if I change to "post" and "date" it stops sending ... I'll post here the controller and the page that receives the data: app.con...
asked by 16.08.2017 / 00:18
1
answer

How to use POST in a json for an Http server

I was wondering how can I do a POST from a json to an http server. The code I am using to do json is as follows: Person person= new Person(); product.FirtsName = "Ola"; product.ID = 1;...
asked by 24.08.2017 / 12:10
1
answer

jsonb: how to fetch the value of the same key from all objects in an array?

I have a column of type jsonb that stores objects in an array. I can get the key template of all index objects 0 like this: psql=# select data->'components'->0->'template' as template from page; that returns...
asked by 18.08.2017 / 01:07
1
answer

Autocomplete insert the value into two different inputs?

I have this code <script type="text/javascript" src="js/jquery-1.4.2.js"></script> <script type='text/javascript' src="js/jquery.autocomplete.js"></script> <link rel="stylesheet" type=...
asked by 01.08.2017 / 21:59
1
answer

How to do JSON data request

I need to collect some data from a program that has API: PipeDrive API Reference If I understand correctly, for each task, a URL will be generated to make Requeste data, for example: https://api.pipedrive.com/v1/deals?stage_id=4...
asked by 11.08.2017 / 18:04