Questions tagged as 'cep'

0
answers

Additional method Jquery Validate ViaCep

Hello, I created an additional method with Jquery Validator to query the Brazilian ceps plus is returning false with valid ceps ... can anyone help me please. $.validator.addMethod('cep', function(val) { var cep = val.replace(/\D/g, '');...
asked by 17.08.2018 / 18:03
1
answer

Knowing the city from the zip code

I would like to know if someone has solved a similar problem: in my system has a form and a zip field, when the user type the zip he wanted to know the region of his if it is north, west, east and etc .... vi that in the post office does not inf...
asked by 04.06.2017 / 00:04
1
answer

Search by Neighborhood https://viacep.com.br/

I know that you give all streets that contain the word Lagoa of a city in this site , through the example: viacep. com / w / RS / Porto Alegre / Olavo / json / How can I know the streets of a certain neighborhood? The goal is to se...
asked by 06.04.2017 / 03:18
0
answers

Cep ajax virtual republic

I'm trying to fill out the automatic zip using the virtual republic website, but I'm not able to put the code to populate inside my input with ajax. Could someone help me? HMTL: <tr> <td><input t...
asked by 08.08.2016 / 22:27
0
answers

Fields filled with zip code in CakePHP 2.x

I'm trying to autocomplete fields in CakePHP from a zip code, I'm adapting the code found on this site: link I used the following site as an example to know how to configure ajax requests for the Framework: link Here is my code:...
asked by 01.02.2015 / 22:16
1
answer

Error in the CEP query in PHP

I'm trying to fix the URL that queries the zip code in PHP, when typing zip XXXXX-XXX the URL is displaying the amp; characters that are causing error in the XML result. Correct query: http://cep.republicavirtual.com.br/web_cep.php?format...
asked by 20.09.2018 / 16:07
2
answers

Adapting code for LAravel, auto-fill CEP

Hello, I'm trying to adapt the code for this link: link for Laravel 5.2, without success. It works well without the framework, as for "css" and "js" I can import them into laravel. But I believe the problem is in the file "query_cep.php" that...
asked by 08.06.2016 / 13:29
2
answers

Zip Code Search in PHP / HTML [closed]

What is missing for this code to bring the zip code result? <!DOCTYPE html> <!--<! -- Trazer Resultados CEP, Rua, Bairro e Estado --> <html lang="pt-br"> <!-- Declaração do Idioma --> <head>...
asked by 12.12.2018 / 01:11