Skip to content
Advertisement

Tag: jquery-events

Calling a method from an event handler

I have this code I am working on but every time I call init method I keep getting an error: this.addElement is not a function Is it because I can’t call methods from event handlers? Answer You should read this book, JavaScript: the Good Parts and visit the Crockenator’s web site here, crockford.com You can also read about the JavaScript

jQuery $(document).ready and UpdatePanels?

I’m using jQuery to wire up some mouseover effects on elements that are inside an UpdatePanel. The events are bound in $(document).ready . For example: Of course, this works fine the first time the page is loaded, but when the UpdatePanel does a partial page update, it’s not run and the mouseover effects don’t work any more inside the UpdatePanel.

Advertisement