Parse & JS: Insert a record using save method

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

If you prefer, you can set attributes directly in your call to save instead to save a record.

<!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 inserted a movie record</h1>

    Parse.initialize('5d3sro43zBGj8AMYqWND5bFYMzAan7f5P5euZm7M', 'hlRZZqAylA7Fmah4Kk6ma8WK7QCT4cHrxjafnnkI');
    var MovieObject = Parse.Object.extend('MovieObject');
    var movieObject = new MovieObject();{
        titleName: 'Dallas Buyers Club',
        actorName: 'Matthew McConaughey',
        releaseYear: 2013
    }, {
        success: function (movieObject) {
        error: function (movieObject, error) {


Try The Code

For Parse, on each save, it will create a unique objectId for each record.


Series Navigation<< Parse & Javascript: Insert a record
Parse & JS: Retrieving object using objectid >>