Questions tagged as 'json'

2
answers

Return JSON to PHP

I'm doing a registration system, where the zip code search should appear as soon as the field changes. But the AJAX return is not working. How to return from JSON to PHP? PS: CEP's search is offline <script type="text/javascript">...
asked by 28.09.2015 / 22:52
3
answers

doubts with ajax and angular

I have my backend, in my controller I have a method salvarBairro(string dados) I'm using angular, this guy here calls my save methodBall of the back $scope.AddBairro = function (bairro) { $http.post("http://localhost:23714/Ba...
asked by 31.12.2015 / 10:20
2
answers

Auto Click mouse on a content within a div?

I would like to know if it is possible to do a div with auto click. This is how the page loads and when someone clicks anywhere on the page the mouse clicks on the content inside the div. In case I put an iframe from an external page. but...
asked by 29.05.2015 / 22:04
2
answers

Get json values in cURL return

I have three distinct servers: server A, server B, and server C. Where A registers users and stores personal information. I'm trying to log in from servers B and C into A using cURL. I need to return the values of A to authenticate user and t...
asked by 24.05.2015 / 15:34
2
answers

json_encode does not return anything

What I'm doing I'm pulling data through PHP with a list of cities to create a graph with Javascript, and I realized that it was not returning the data, so I accessed the file that takes the data from the database and does the conversion with...
asked by 15.06.2015 / 15:19
2
answers

Load fields automatically with jquery and json

I need to fill in my fields after selecting one. My JSON is as follows: [{"codeVisit":"3EE","segmentVisit":"industria","streetVisit":"Rua Francisco Leandro Cunha","neighbVisit":"Vila","countryVisit":"Brasil","client":"5580262b600e53e82069bb...
asked by 16.06.2015 / 19:54
1
answer

Use Pattern View Model or a POST method with Json?

I wanted a tip from you who are experienced. I am developing an application where I will use properties of 2 models , which wanted the best option to be used in this case and if possible please kindly list the advantages.     
asked by 13.10.2015 / 19:36
3
answers

Monetary unit with JSON

I'm getting a JSON currency format as follows "Preco" : "2299.0000" Appearing on my form (ASP Classic / HTML):    $ 22,990,000.00 How to do this treatment? Do you have to use JS? The correct value that should appear is: $ 2299.0...
asked by 22.12.2014 / 11:51
1
answer

Force a 200 header in Ajax while the PHP function goes to sleep

I am creating a chat function, however, the server is waiting for a DB interaction for a period of 10 seconds. The problem is that while the Ajax connection is open waiting for a response within 10 seconds, the browser does not accept to swit...
asked by 23.10.2014 / 19:52
2
answers

Convert JSON to UTF-8 on Android

I have JSON Array and when it is displayed in ListView on Android, it appears with special characters: JSONgeneratedbyphp:[{"id":"1","titulo":"X-Burg","descricao":"Hambúrguer,...","preco":"R$ 7,50","tipo":"0"},{"id":"2","titulo"...
asked by 03.09.2014 / 14:09