public
Last active

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

  • Download Gist
index.html
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>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.