I am not sure if this is the fanciest way to get the job done but it works REALLY well. What job am I referring to? I am referring to outputting data as JSON in a CakePHP view and then parsing it in a jQuery AJAX response. Its fairly easy to accomplish with the JSON parser provided by json.org. Scroll to the bottom and download/include json2.js.
Controller example:
01.$sizeArray = getimagesize(/path/to/really_cool_image.jpg);
02.
03.$outputArray = array(
04. file => areally_cool_image.jpg,
05. width => $sizeArray[0],
06. height => $sizeArray[1],
07.);
08.
09.$this->set( aresult, $outputArray);
10.
11.$this->render(null, ajax);
AJAX View example:
1.Configure::write( wouldebug, 0);
2.echo $javascript->object($result);
jQuery AJAX response handler example:
1.function(response, status) {
2. imageDetails = JSON.parse(response);
3. imageName = imageDetails.file;
4.}
Related Stuff
-
MooV: Using cutting edge Video phones and Software Video Phones - coupling all that with VoIP and empowering the disabled.
-
Moo Telecom: VoIP communications made easy - Ring anyway with the fun and ease of using a normal phone
-
TagR:Mobile Social Network with Real Time Locations Based services, and Ambience Intelligence, VoiP, IM, Skype, Googletalk, Mapping, Flickr, Events, Calendaring, Scheduling, SecondLife Support
-
ClearSMS : ClearSMS is a Web-based application that lets you send bulk SMS messages to your customers, contacts, or just about anyone.
-
Jajah:jah is a VoIP (Voice over IP) provider, founded by Austrians Roman Scharf and Daniel Mattes in 2005[1]. The Jajah headquarters are located in Mountain View, CA, USA, and Luxembourg. Jajah maintains a development centre in Israel.
-
Skype: It’s free to download and free to call other people on Skype. Skype the number one voice over ip software
- PrivatePhone: a free local phone number with voicemail and messages you can check online or from any phone.

Original Source: