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...
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...
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...
<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...
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,...
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...
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;...
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...
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=...
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...