This is perhaps a pretty simple/silly question. I'm very new to JS
programing so I don't know what's the best practice in my case.
I want to validate a form using Javascript. In my case: The input text
'zip' and 'city' should be checked against goolge maps and return geo
coordinates or "false" if the zip and city values doesn't match.
I would like to use the google api via php, because i already created
such a function for serverside testing. I thought it is clever to
reuse this code (DRY) creating a simple mehtod in a controller
returning the geo coordinates or "false". But which format should this
be (or is the more less to develop)? AJAX, JSON or XML?
How can I parse this view using javascript (with jquery)?
Regards,
Cronet
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment