>
> AJAX, JSON or XML?

user which you feel comfortable with - cake can assist you in each case -
see parseExtensions

theres a form plugin for jquery google malsup form plugin - there also a
validate plugin for jquery

if you validating phone numbers email address etc then regex in javascript
appropriate, but if you keen to reuse yoor serverside code then I would go
for json or xml the jquery form plugin supports both these formats too

2008/12/1 cronet <[EMAIL PROTECTED]>

>
> Hi,
>
> 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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to