Questions tagged as 'json'

1
answer

Comparison of arrays or best method to add new elements

I have a webservice in json that returns me to the last people who passed in a certain place. That said, I did the following: I always ask for information about the last person to go to the api. I created in my page in setInterval...
asked by 29.08.2018 / 15:36
1
answer

Compare Compare Values of Webservice JSON

I have a website in Wordpress and I'm consuming a Web Service, I created a function to filter the championships based on some information: Sex: M Mode: 2 Category: 4 If all are true, it returns the name of the respective championship and p...
asked by 31.07.2018 / 18:41
1
answer

Error passing parameter through GetAsync method

How do I pass the login object as a parameter to the GetAsync method? I'm trying to do it this way, but I did not understand the error message: private async Task<JsonResult> obterLogin(Login login) {...
asked by 27.07.2018 / 15:43
1
answer

Print BSON of MongoDB with several different structures

Hello, I'm making an application using Python (Flask) and MongoDB. In this application the user can assemble his page inserting Images, Text or youtube link. With the sequence you want. This first part I did and I'm recording in Mongo. The...
asked by 23.08.2018 / 00:03
1
answer

Send form without loading page via json

I'm developing a website and I'm using laravel, and I need to send a form without updating the page, I'm using jquery, but I do not know much about it, can anyone help me? html form <form> {{csrf_field()}} <div class="user i...
asked by 16.07.2018 / 18:58
1
answer

Upload select via ajax

I'm trying to load a select via ajax, here's how I'm doing: HTML: <select id="cbplanos" class="form-control"></select> Controller code: public async Task<IActionResult> Load() { var lista = _context....
asked by 29.06.2018 / 14:22
1
answer

Load input text after selecting select

I have a select that is being populated via ajax, when I open the modal, I call the function that loads the select, and it is working perfectly. But I need a cascade type effect in the first field, and when changing, it changes the input text...
asked by 29.06.2018 / 14:53
1
answer

Very slow zip query [closed]

date_default_timezone_set('America/Sao_Paulo'); include 'conn.php'; $query = $mysql_adv->query("SELECT * FROM dados"); while($row = $query->fetch_array()){ $url = "https://maps.googleapis.com/maps/api/distancematrix/json?or...
asked by 12.06.2018 / 16:11
1
answer

AJAX function does not pass the result to another function

I have this function in AJAX: function SalvarHorario() { //NomeHorario var nome = $("#Nome").val(); var token = $('input[name="__RequestVerificationToken"]').val(); var tokenadr = $('form[action="/Horario/Create"]...
asked by 29.05.2018 / 21:21
1
answer

How to get specific return data from a JSON with Ionic 3

I think it's simple, but going from Ionic 1 to 3, changed so many things. I need to get all the returns from my Json from this routine (I actually need the user ID and register in localstorage): submit(){ var email = this.data.email;...
asked by 20.07.2018 / 16:20