dojo Form Demo
This is a very simple demonstration of a dojo form. Please use ‘View Source’ to view the code.
Supporting server-side PHP.
json.php
Returns the submitted input. Demonstrates a ’successful’ transaction.
<?php
header('Content-type: application/json');
echo <<<END
{"sText":"{$_REQUEST['sText']}"}
END;
?>
error.php
Returns a 503, service not available.
<?php
header("HTTP/1.0 503 Service Not Available");echo 'Server side error';
exit();
?>
timeout.php
Sleeps for 3 seconds to force a timeout.
<?php
sleep(3);
?>
Print article | This entry was posted by elvis on 11/03/08 at 10:07:19 pm . Follow any responses to this post through RSS 2.0. |