Skip to content

Tag: backbone.js

How to catch form submit with Backbone.js

When I test and click my apply button after I put in data in my input fields, I get a file not found error. The Login button is a dummy button with no functionality to it. I want to only display an alert box that says “You logged in as (user name here) Succesfully!!!” after apply is clicked. Answe…

Custom mouse events in backbonejs

What would be a good way of supporting custom mouse events? For example, I currently have: But instead of mousedown, I would like to create a custom event called mousedrag which would be a combination of mousedown and mousemove. Is there any recommended way of adding such a custom event? Answer Since Backbone…