Questions tagged as 'json'

2
answers

How do I join results from different foreach in an array?

I'm getting movie info from a movie site using Simple Html Dom. <?php include("simple_html_dom.php"); $html = file_get_html("http://arcoplex.com.br/?lang=059"); To get the titles of the movies I do: foreach($html->find('.Cartaz .f...
asked by 24.09.2018 / 19:15
1
answer

How to get the result of a JSON in Ionic 3, but the echo result in PHP

I need to get the result of my JSON which can be "Registration already exists." or "Successful Registration." In my registration, I'm doing it this way: submit(){ var nome = this.data.nome; var celular = this.data.celular; var...
asked by 24.07.2018 / 21:21
1
answer

Write result of a search in a json_encode

I'm trying to write a result of a query to a json_encode and soon after writing to a field in my BD , but I'm getting an error message and could not solve the problem. What I'm doing: $IdUsuario = $rowData['IdUsuario'];...
asked by 26.07.2018 / 19:12
1
answer

Get value from a TJSONString by Firemonkey (Delphi)

Good afternoon! I have a problem and I would like to see if you can help me. I have a DataSnap server, which is working normally. In it, I add and query the database by mobile devices. In the function where I make the register, it is co...
asked by 05.09.2018 / 20:45
1
answer

How to handle the JSON response with JavaScript

<script type="text/javascript"> $(function($) { $('#enviaadv').submit(function() { //document.getElementById('btnConsultar').disabled = true; $('div.mensagem-erro').html(''); $(this).ajaxSubmit(function(respost...
asked by 18.06.2018 / 19:35
2
answers

A jQuery Get () inside another jQuery get ()

I need to execute a jQuery Get() inside another, but I can not do it at all, it simply ignores the second Get() without returning what I need (the username of the second get() ): $.getJSON("https://api.mercadolibre.com/...
asked by 11.05.2018 / 16:01
1
answer

How to display PHP errors using Ajax and JSON?

You know those error messages that PHP returns when we write some wrong code or, for example, we call some variable that does not exist, or try to include include in a nonexistent file. When we make an Ajax request without using JSON and ask it...
asked by 08.05.2018 / 22:31
1
answer

Add and remove select with button

I'm developing a form in which I have a select that chooses states and capitals from Brazil, but since whoever fill can add more than one select I need to make a add another select button, as I'll save the selected values, is that in case I am p...
asked by 03.05.2018 / 19:43
1
answer

How do I get a list of JS objects in Controller C # MVC?

I have an object with a list that will return me 3 or more items. I pass this object like this: var jsonObjs = JSON.stringify(arrayObj); alert(jsonObjs); CarregaNotas(jsonObjs); functionCarregaNotas(notas){jQuery.ajax({type...
asked by 30.04.2018 / 14:40
1
answer

Add values to a deserialized JSON object attribute in Javascript

My problem is this: I am retrieving a Json object from localStorage via Javascript, and wanted to add a value to one of these attributes, and then save the evolta object to local storage. However, when doing the operation: object.attribute = obj...
asked by 29.04.2018 / 15:29