It is a tool, which generates an appropriate JS file for interacting of external web-page with CrowdComputer and Amazon Mechanical TURK.
Here is an example of the page, which sends data to both CrowdComputer and MTURK
<h1>Hello John!</h1>
<form action="" method="POST">
<input type="text" id='firstname' name="firstname" value="my name">
<input type="text" id='lastname' name="lastname" value="my lastname">
<input type="submit" value="save">
</form>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="http://static.crowdcomputer.org/CC-JS-Generator/?type=send_all_to_mturk"></script>
Example for CC example_cc.html
Example for CC and MTURK example_amt.html
Library http://static.crowdcomputer.org/CC-JS-Generator/
no parameters - provides a function sendDataToCC,
?type=send_all_to_crowdcomputer - sends all the data from the submitted form to CrowdComputer via sendDataToCC
?type=send_all_to_mturk - sends all the data from the submitted form to CrowdComputer and MTURK. It also requires a tunnel.php file. If you have this file not in a root directoty, add an additional parameter &tunnel_file=path/to/the/file.php.
feel free to contribute