Getting started with HTML5, CSS3 and JavaScript

[Source] This blog post describes the resources I am using to get started with HTML5, CSS3 and JavaScript and to learn for the Microsoft Certification. I will be updating this post as I advance in my preparation. Read Dive Into HTML5 Eloquent JavaScript W3C - World Wide Web Consortium Standards HTML5 specification WHATWG community Web Hypertext Application Technology (WHAT) Specifications … Continue reading Getting started with HTML5, CSS3 and JavaScript

JavaScript error: $ is undefined

This error comes when the jQuery library was not referenced or not loaded at all or not loaded properly. Solution: Add script reference to the jQuery library in your html file: you can download it and add it into your project or reference it from CDN. The order of your referenced scripts is important: make … Continue reading JavaScript error: $ is undefined

jQuery Proven Performance Tips And Tricks (Slides) by Addy Osmani

„Apps should be snappy, not sloppy”, that’s what Addy Osmani writes. Also how true is this: “Best practices offer optimal approaches to solving problems. If we don’t follow them, browsers can end up having to do more work, which means more memory use and slower apps.” A part of the steps we should take in … Continue reading jQuery Proven Performance Tips And Tricks (Slides) by Addy Osmani

JavaScript naming conventions and coding guidelines

I’ve recognized that I’m sometimes not following the general rules when writing JavaScript code. *ashamed* For example: - Using a lot of C# conventions, which are wrong in JS, - Putting accidentally variables and functions in the global scope, - Pascal and Camel casing is mixedly used for naming variables and functions all over our … Continue reading JavaScript naming conventions and coding guidelines

HOW TO: check if callbacks are running

Today I was struggling with a nasty bug. The functionality is pretty basic: we attach an onchange event handler on several textboxes in which we do a callback with $.ajax. During the callback, we make some calculations on the server-side and when the callback comes back successfully, we update the textboxes with the new values. … Continue reading HOW TO: check if callbacks are running