JSFiddle

  • Backbone js - View #1 is the latest revision

    List link

    model = new Backbone.Model({
        data:[
            {text:'Google',href:'https://www.google.co.id'},
            {text:'Facebook',href:'https://www.facebook.com ...
  • Bacbonejs - Model

    how to use model backbone js, use console.log

    Person = Backbone.Model.extend({
        initialize:function(){
        console.log("inisialisasi");
            //ketika model diganti otomatis memanggil fungsi ini
            this.bind('change:name ...
  • jQuery+: $.when() to bind button clicks

    Builds promises for 5 button clickHandlers. Uses $.when() to batch process a grouped response when all buttons have been clicked.

    ( function($) {
        /**
         * jQuery Plugin `allClicked` uses the $.when() feature to watches 
         * for a collection of items to be all clicked 
         *  
         * Returns ...
  • Backbone js search use template

    jQuery 1.8.3, HTML, CSS, JavaScript

    (function($){
         var SearchView = Backbone.View.extend({
            el: $("#searchContainer") ,
            events: {
                'click input[type=button]': 'doSearch'  
            },
            initialize: function(){
                _.bindAll(this, 'render ...
  • Backbonejs - Add Shape Can Drag II

    jQuery 1.7.1, HTML, CSS, JavaScript

    /*
    Copyright © Chaker Nakhli 2011
    Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file ...
  • Update warna backbone js

    Hex and swatch

    var color = new Backbone.Model({hex: '#ff0000'});
    
    var HexView = Backbone.View.extend({
        events: {
            'click input': function () {
                this.model.set({hex ...
  • Learn How to use Backbone JS part 5

    CRUD swap and delete include

    (function($){
      Backbone.sync = function(method, model, success, error){ 
        success();
      };
      var Item = Backbone.Model.extend({
        defaults: {
          part1: 'hello',
          part2: 'world'
        }
      });
      var ...
  • Backbone js getter

    Make shape with get bacbonejs

    var Shape = Backbone.Model.extend({
      defaults: { x:50, y:50, width:150, height:150, color:'black' },
      setTopLeft: function(x,y ...
  • Backbonejs Hello World use model

    use default model add list li

    (function($){
       var Item = Backbone.Model.extend({
        defaults: {
          part1: 'hello',
          part2: 'bos'
        }
      });
        var List = Backbone.Collection.extend({
        model: Item
      });
        var ListView ...
  • Backbonejs Hello World

    learn backbonejs

    (function($){
       var ListView = Backbone.View.extend({    
       el: $('body'), // attaches `this.el` to an existing element.
       events: {
          'click button#add': 'addItem ...