Quantcast

Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

Paulo Terra
Estou tentando carregar o endereço a partir do CEP informado pelo usuário. Apesar de encontrar várias pessoas perguntando por isso não encontro uma resposta que funcione. Alguém já fez isso no CakePHP 3?

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

Fabrício Muniz
Qual a dificuldade?

2016-04-02 18:09 GMT-03:00 Paulo Terra <[hidden email]>:
Estou tentando carregar o endereço a partir do CEP informado pelo usuário. Apesar de encontrar várias pessoas perguntando por isso não encontro uma resposta que funcione. Alguém já fez isso no CakePHP 3?

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

Nilson Pena-2
In reply to this post by Paulo Terra
O correio disponibiliza algum webservice gratuito?

Em sábado, 2 de abril de 2016, Paulo Terra <[hidden email]> escreveu:
Estou tentando carregar o endereço a partir do CEP informado pelo usuário. Apesar de encontrar várias pessoas perguntando por isso não encontro uma resposta que funcione. Alguém já fez isso no CakePHP 3?

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;cake-php%2Bunsubscribe@googlegroups.com&#39;);" target="_blank">cake-php+unsubscribe@....
For more options, visit https://groups.google.com/d/optout.

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

Paulo Terra
In reply to this post by Fabrício Muniz
Oi Fabricio, obrigado pela resposta. Minha dificuldade maior é fazer a requisição Ajax. Apesar de ler a documentação e consultar alguns exemplos daqui do forum, nada funcionou.

Em sábado, 2 de abril de 2016 19:43:43 UTC-3, Fabrício Muniz escreveu:
Qual a dificuldade?

2016-04-02 18:09 GMT-03:00 Paulo Terra <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="ewT7-cOxBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">pte...@...>:
Estou tentando carregar o endereço a partir do CEP informado pelo usuário. Apesar de encontrar várias pessoas perguntando por isso não encontro uma resposta que funcione. Alguém já fez isso no CakePHP 3?

--
Sign up for our Newsletter for updates.
<a href="http://cakephp.org/newsletter/signup" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fcakephp.org%2Fnewsletter%2Fsignup\46sa\75D\46sntz\0751\46usg\75AFQjCNGErMluKHvMycgXNStE2DC-BG17zg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fcakephp.org%2Fnewsletter%2Fsignup\46sa\75D\46sntz\0751\46usg\75AFQjCNGErMluKHvMycgXNStE2DC-BG17zg&#39;;return true;">http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook <a href="https://www.facebook.com/CakePHP" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fwww.facebook.com%2FCakePHP\46sa\75D\46sntz\0751\46usg\75AFQjCNG_OVGPrsW2S4xCvT0yb2leRWBsQg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fwww.facebook.com%2FCakePHP\46sa\75D\46sntz\0751\46usg\75AFQjCNG_OVGPrsW2S4xCvT0yb2leRWBsQg&#39;;return true;">https://www.facebook.com/CakePHP
Follow us on Twitter <a href="http://twitter.com/CakePHP" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Ftwitter.com%2FCakePHP\46sa\75D\46sntz\0751\46usg\75AFQjCNGm99t3RztzLJAbpv22cUAOb0aFHw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Ftwitter.com%2FCakePHP\46sa\75D\46sntz\0751\46usg\75AFQjCNGm99t3RztzLJAbpv22cUAOb0aFHw&#39;;return true;">http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="ewT7-cOxBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">cake-php+u...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

Paulo Terra
In reply to this post by Nilson Pena-2
Sim, mas existem outros webservices confiáveis também.

Em sábado, 2 de abril de 2016 20:06:03 UTC-3, Nilson Pena escreveu:
O correio disponibiliza algum webservice gratuito?

Em sábado, 2 de abril de 2016, Paulo Terra <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="_IrdC_yyBwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">pte...@...> escreveu:
Estou tentando carregar o endereço a partir do CEP informado pelo usuário. Apesar de encontrar várias pessoas perguntando por isso não encontro uma resposta que funcione. Alguém já fez isso no CakePHP 3?

--
Sign up for our Newsletter for updates.
<a href="http://cakephp.org/newsletter/signup" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fcakephp.org%2Fnewsletter%2Fsignup\46sa\75D\46sntz\0751\46usg\75AFQjCNGErMluKHvMycgXNStE2DC-BG17zg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fcakephp.org%2Fnewsletter%2Fsignup\46sa\75D\46sntz\0751\46usg\75AFQjCNGErMluKHvMycgXNStE2DC-BG17zg&#39;;return true;">http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook <a href="https://www.facebook.com/CakePHP" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fwww.facebook.com%2FCakePHP\46sa\75D\46sntz\0751\46usg\75AFQjCNG_OVGPrsW2S4xCvT0yb2leRWBsQg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fwww.facebook.com%2FCakePHP\46sa\75D\46sntz\0751\46usg\75AFQjCNG_OVGPrsW2S4xCvT0yb2leRWBsQg&#39;;return true;">https://www.facebook.com/CakePHP
Follow us on Twitter <a href="http://twitter.com/CakePHP" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Ftwitter.com%2FCakePHP\46sa\75D\46sntz\0751\46usg\75AFQjCNGm99t3RztzLJAbpv22cUAOb0aFHw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Ftwitter.com%2FCakePHP\46sa\75D\46sntz\0751\46usg\75AFQjCNGm99t3RztzLJAbpv22cUAOb0aFHw&#39;;return true;">http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

Diego Mendonça
Eu utilizo esse aqui: https://viacep.com.br/ no próprio site tem um tutorial de como fazer com JS


On Sun, Apr 3, 2016 at 7:59 PM, Paulo Terra <[hidden email]> wrote:
Sim, mas existem outros webservices confiáveis também.

Em sábado, 2 de abril de 2016 20:06:03 UTC-3, Nilson Pena escreveu:
O correio disponibiliza algum webservice gratuito?

Em sábado, 2 de abril de 2016, Paulo Terra <[hidden email]> escreveu:
Estou tentando carregar o endereço a partir do CEP informado pelo usuário. Apesar de encontrar várias pessoas perguntando por isso não encontro uma resposta que funcione. Alguém já fez isso no CakePHP 3?

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Carregar endereço a partir do CEP no CakePHP 3 usando AJAX

Paulo Terra

Ok Diego, obrigado. Vou dar uma olhada. Abs!

Em 04/04/2016 11:52, "Diego Mendonça" <[hidden email]> escreveu:
Eu utilizo esse aqui: https://viacep.com.br/ no próprio site tem um tutorial de como fazer com JS


On Sun, Apr 3, 2016 at 7:59 PM, Paulo Terra <[hidden email]> wrote:
Sim, mas existem outros webservices confiáveis também.

Em sábado, 2 de abril de 2016 20:06:03 UTC-3, Nilson Pena escreveu:
O correio disponibiliza algum webservice gratuito?

Em sábado, 2 de abril de 2016, Paulo Terra <[hidden email]> escreveu:
Estou tentando carregar o endereço a partir do CEP informado pelo usuário. Apesar de encontrar várias pessoas perguntando por isso não encontro uma resposta que funcione. Alguém já fez isso no CakePHP 3?

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to a topic in the Google Groups "CakePHP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cake-php/nfmu-j5wiH8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...