Articles with tag "javascript"

Using jQuery for Background Image Animations

I felt like playing around with things to see what could be done but accomplish it with a simpler HTML structure (no need for adding superfluous tags) and simpler code, too.
Changing the position of the background image felt to be the best approach to creating the type of effect we're looking for (and I'm not the first to think so: see the examples at the end of this article). jQuery is a great library for this type of task...
Comments: 238     Views: 10210     Rating: 12345

JavaScript defining and using custom events

Simply, a custom event is something that happens that you feel is important enough to define actions to execute when this something happens. Clear as mud? I think I confused even myself. A custom event is just like a native event (onclick, onload, etc) except you define what it is and when it should fire.
Some explanation and implementation use the Yahoo User Interface library (YUI). I don’t use YUI. So I wrote up a simple class that allows you to implement custom events that is library independent.
Comments: 283     Views: 8937     Rating: 12345

Advanced Debugging with JavaScript

When used effectively, JavaScript debuggers help find and squash errors in your JavaScript code. To become an advanced JavaScript debugger, you’ll need to know about the debuggers available to you, the typical JavaScript debugging workflow, and code requirements for effective debugging. In this article, we’ll discuss advanced debugging techniques for diagnosing and treating bugs using a sample web application.
Comments: 127     Views: 13184     Rating: 12345

Understanding scope in object oriented JavaScript

When you think of the keyword this you probably assume it refers to the current instance of the class. This is true for most object oriented languages like C# and Java. So, knowing this you would probably assume the same would be true of JavaScript and it's this keyword. This is, however, not the case.
Comments: 35     Views: 48906     Rating: 12345