Skip to content

It is a tool, which generates an appropriate JS file for interacting of external web-page with CrowdComputer and Amazon Mechanical TURK.

Notifications You must be signed in to change notification settings

Crowdcomputer/CrowdComputer-JS-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrowdComputer-JS-Generator

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>

Online version:

Example for CC example_cc.html

Example for CC and MTURK example_amt.html

Library http://static.crowdcomputer.org/CC-JS-Generator/


Settings:

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

About

It is a tool, which generates an appropriate JS file for interacting of external web-page with CrowdComputer and Amazon Mechanical TURK.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published