backbone.js view return false -


can explain me, in backbone.js view return false statement. example

search: function() {   var view = this;   $.post('/contacts/find',     this.$('form').serialize(), function(data) {     view.render(data);   }).error(function(){     $("#results").text('no contacts found.');     $("#results").slidedown();   });   return false; }, 

to cancel default event behaviour. in example after clicking submit button form not submitted (page reload). same as:

event.preventdefault(); event.stoppropagation(); 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -