Archive for 'JSON'
AMFPHP Support for JSON POST
24 July 2009I found myself wanting to use JSON POSTs (not just GETs) with AMFPHP. Here’s the addition.
Open up core\json\app\Gateway.php.
After
$rawArgs = explode(’/', $args);
add the following
if(isset($_POST) && count($_POST) > 0)
{
$len = count($rawArgs);
// Check for and remove [last] empty arg from URL ‘/’ explosion
if($len && trim($rawArgs[$len-1]) == “”)
[…]
What, my flash gateway is already AJAX ready? Sweet.
23 July 2009I’m integrating existing Flex functionality with some new COTS [AJAX RIA] software. Looks like I’m golden on two fronts:
My existing dashboarding app leverages the dynamic module architecture blogged hear in the past. Each module was cleanly encapsulated so it’s about a dozen lines of code to convert each module into a stand-alone app […]
