PHP Classes

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (7 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 501 All time: 5,375 This week: 1,359Up
Version License PHP version Categories  
jsonp 1.0GNU General Publi...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: 27
All time rank: 3804 in Serbia Serbia
Week rank: 119 Up1 in Serbia Serbia Up
Innovation award
Innovation award
Nominee: 3x

  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 Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%Total:501All time:5,375
 This week:0This week:1,359Up