Archives for: November 2008, 03
dojo Form Demo
Link: http://wirehopper.com/demo.php
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:
<?php | |
header('Content-type: application/json'); | |
echo <<<END | |
{"sText":"{$_REQUEST['sText']}"} | |
END; | |
?> |
error.php
Returns a 503, service not available.
PHP:
timeout.php
Sleeps for 3 seconds to force a timeout.
PHP:
<?php | |
sleep(3); | |
?> |





