formprocessing - controller.php - AJAX Search Code ~ Ajax Training, Learn Ajax Video Tutorials Online, Ajax Examples
Ajax Training, Learn Ajax Video Tutorials Online, Ajax Examples: formprocessing - controller.php - AJAX Search Code

formprocessing - controller.php - AJAX Search Code

<?php

require_once('../../lib/xmlajaxresponse.class.php');
require_once('../../lib/request.class.php');

$response = &new XMLAjaxResponse();
$request = &new HttpRequest();

$event = $request->getParameter('event');

if ($event && function_exists($event)) {
$event($request, $response);
}

function submitForm1(&$request, &$response) {
$response->addForm('form2', $request->getParameters());
}


function submitForm2(&$request, &$response) {
$response->addForm('form1', $request->getParameters());
}

$response->doResponse();

?>

Related Posts by Categories

0 comments:

Useful Links on Adobe Flex

Your Ad Here

Latest Books on Adobe Flex