Quotes help make search much faster. Example: "Practice Makes Perfect"

Sunday, January 13, 2013

Codecademy Sample Solution: Adding data to your Parse Object


//sample solution to my_parse_app.js

$(window).on("html_loaded", function(e) {
    $(".submit_button").click(function(e) {
     
        // This creates our new Post object
        var Post = Parse.Object.extend("Post");
        var myPost = new Post();
     
        // 1. Let's add some data for the key 'text'
        myPost.set("text", "any string");
     
    });
});

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts