Login   Register  
PHP Classes
elePHPant
Icontem

PHP JSONP Response: Encode and generate a response to JSONP request

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-10-02 (22 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 475 This week: 4All time: 5,425 This week: 440Up
Version License PHP version Categories  
jsonp 1.0GNU General Public Lice...4.0PHP 5, Web services, AJAX
Description Author  

This class can encode and generate a response to JSONP request.

It generates JavaScript code to return JSON encoded variable value as response to a JSONP request.

The generated JavaScript may either invoke a callback function with a name defined by a request variable, or assign a JavaScript variable with the JSON encoded variable value.

Innovation Award  
PHP Programming Innovation award nominee
May 2013
Number 3


Prize: One downloadable e-book of choice by O'Reilly
JSONP is a form to respond to AJAX requests by generating JavaScript that will call a given callback function.

This class can facilitate the generation of JSONP request responses from PHP variable values.

Manuel Lemos
Picture of Radovan Janjic
Name: Radovan Janjic is available for providing paid consulting. Contact Radovan Janjic .
Classes: 14 packages by
Country: Serbia Serbia
Age: 26
All time rank: 4144 in Serbia Serbia
Week rank: 16 Up1 in Serbia Serbia Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Accessible without login Plain text file captcha.php Example Example script
Accessible without login Plain text file example.html Example Example script
Plain text file JSONP.class.php Class Class file
Accessible without login Plain text file JSONP.class.php4 Data Auxiliary data
Plain text file JSONP.js Class JavaScript package file
Accessible without login Plain text file README.md Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%Total:475All time:5,425
 This week:4This week:440Up