Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Application initializes the Parse Javascript SDK and calls our Cloud Code "yodaSpeakFunction"

View index.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
<!doctype html>
<head>
<title>My Parse App</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://www.parsecdn.com/js/parse-1.2.12.min.js"></script>
</head>
 
<body>
 
<script type="text/javascript">
// After installing the Parse SDK above, intialize it with your Parse application ID and key below
Parse.initialize("<Parse application ID>", "<Parse key>");
// Call the Cloud Code 'yodaSpeakFunction'
Parse.Cloud.run('yodaSpeakFunction', { sentence: "Hi there my name is Chris." }, {
success: function(result) {
// Show result as an alert
alert(result);
},
error: function(error) {
}
});
</script>
 
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.