You should create a widget and embed the JS needed there. Here is a nice
tutorial about this:

http://www.symfony-project.org/more-with-symfony/1_4/en/05-Custom-Widgets-and-Validators

On Mon, Aug 23, 2010 at 8:49 PM, Jochen Daum <jdau...@gmail.com> wrote:

> Hi,
>
> for my application here I need to "auto-correct" an address with
> Google Maps. What I mean by that is someone may enter
>
> 1 Wellington street, Herne bay, Auckland
>
> but because of suburb dependent business logic I need
>
> 1 Wellington Street, Freemans Bay, Auckland, 1011
>
> which would be returned from Google Maps.
>
> So I want my textarea to send the request to Google Maps onBlur. How
> do I structure my code for this, if I need this functionality in
> multiple modules. Do I create a plugin, but what url do I call then?
> How is access control handled? Is there jquery already bundled
> somehow, or where do I put that?
>
> Thanks for any pointers,
>
> Jochen
>
> P.S.: I don't need help with the Google API
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to