Parse & JS: Parse object

This entry is part 4 of 25 in the series Parse & Javascript

In parse, each App has its own application id and JavaScript client key that you apply to your web app. Your account on Parse can accommodate multiple Apps.

Storing data on Parse is built around Parse.Object. Each Parse.Object contains key-value pairs of JSON-compatible data.

<!doctype html>
    <title>My Parse App</title>
    <script type='text/javascript' src=''></script>
    <script type='text/javascript' src=''></script>


    <div style='display:none' class='error'>
        <h1>Failed to connect to Parse database</h1>

    <div style='display:none' class='success'>
        <h1>Successfully connected to parse database and insert a record</h1>

    Parse.initialize('5d3sro43zBGj8AMYqWND5bFYMzAan7f5P5euZm7M', 'hlRZZqAylA7Fmah4Kk6ma8WK7QCT4cHrxjafnnkI');
    var TestObject = Parse.Object.extend('TestObject');
    var testObject = new TestObject();{foo: 'bar'}, {
        success: function (object) {
        error: function (model, error) {

Try The Code

The name-value pair here is foo: ‘bar’ where foo is the column name and bar is the value.


Series Navigation<< Parse & JS: Install the Parse Javascript SDK
Parse & JS: Database table >>

Leave a comment

Leave a Reply