Skip to content
Advertisement

Tag: jquery-events

init() function undefined when using easeljs

I’m working on a small project to create an image gallery using easeljs and jQuery, I’m very new to both tools and this particular problem has got me scratching my head. My HTML is very basic, I just want to get the functionality right before I start adding any bells and whistles : If I understand correctly, in order to

Detach event handlers selectively

I have a html richText editor. My code structure is like this: Our app is single page application, and there are multiple richtexteditor instances opened in different panes. I need to destroy the instance when the node corresponding to this has been removed. Destroy should remove all the event handlers attached by that instance. So far Date.now() for uniquely identifying

Start and stop with keypress from keyboard

I have this JavaScript http://jsfiddle.net/ZDsMa/433/ to pick a random number. I put this on html div and I want to start scrambling the numbers with keypress instead of onClick, also to stop again with keypress: Answer You can wrap the animation in a function and then call it on keypress… something like this:

jQuery click makes multiple AJAX calls

I’ve got multiple jQuery scripts working together. One binds the click actions to the elements, another handles the specific functions. Although trying to stop multiple calls in different ways i can still fire off two calls by clicking really fast. After the success call rebinds the action its also possible to double the number of calls each time it comes

key up jQuery removing class

Demo I have here a demo on validating if a class exist in a div. when there is no class another class is removed from a button. Basically what this does is when there are no disabled button the disable on add button will be removed. This works fine if the last thing user will do is change but if

Prevent parent page from scrolling when mouse is over embedded iframe in Firefox

…without limiting the scroll inside the iframe or the need to specifically name/tag all scrollable elements. Imagine google maps widget embedded in parent page. When you zoom in the widget you don’t want the parent page to scroll, obviously. I thought an answer to my previous question solved the problem: While scrolling inside an iframe, the body doesn’t know anything

Advertisement