I watched two days ago a great webinar “Good C# Habits Can Encourage Bad JavaScript Habits”, which might be interesting to you as well. You can find more info and the recorded video here: http://www.elijahmanor.com/2011/02/video-good-c-habits-can-encourage-bad.html Additional resources are also listed on that page, in case you don’t have time to watch the video. The slides … Continue reading Bad JavaScript practices: video, tools, webinars
Tag: JavaScript
Equality testing in JavaScript
Did you know that JavaScript has the “===” and “!==” operators to compare two variables? When we have to check in JavaScript whether two variables are equal or not equal, we use “==” or “!=”. It’s just the habit of the C# programmer. But those two operators are not reliable. Why, you ask?If the two … Continue reading Equality testing in JavaScript
JavaScript global namespaces
I have recently run into a problem that I had by accident two functions with the same name from separate JavaScript files in my page. It can happen that multiple developers are working on separate user controls contained in one page. Each user control references a separate JavaScript file so it stays reusable together with … Continue reading JavaScript global namespaces
How to place a footer on the bottom of the page?
By simply adding a footer div on the bottom of the content code ? Problem: what if the content is smaller than the window ? The footer's position will not be on the bottom of the page, it will be positioned right after the content. By positioning the footer div as absolute with bottom:0 ? … Continue reading How to place a footer on the bottom of the page?