Notes to myself
ASP.NET MVC, JavaScript, CSS, HTML
-
Looking for ko.utils.cloneNodes - knockout debug vs release versions
Completely my fault. I used knockout.js uility method ko.utils.cloneNodes despite the fact that it is not exported using ko.exportSymbol in the source code of the library.
-
Visual Studio 2008 “Format Document/Selection” command and a function named “assert” in JavaScript code
Just have found some funny behavior of the Visual Studio 2008 editor. Sorry if it is already well known bug.
-
jQuery Templates Proposal – dissecting plugin code
As you’ve probably heard, it was announced during the second-day MIX keynote that Microsoft is going to contribute to jQuery project. As a part of the contribution templating proposal was written and experimental plugin code is already available.
-
Lazy HTML attributes wrapping in Internet Explorer
Having encountered this Internet Explorer (all versions) behavior several times previously, I eventually decided to share this most probably useless knowledge. Excuse my lengthy explanations because I am going to show the behavior along with a very simple case when one can come across it inadvertently.
-
Hook up to arbitrary HttpModule event in global.asax
First of all, if you are already aware of the technique you can use to bind an event handler to the arbitrary event of the arbitrary HttpModule registered within your application using global.asax file, then, I am terribly sorry - there is most probably nothing new in this post for you (while still you may find subtleties you did not know previously).
-
Where is my Microsoft Ajax 3.5 library standalone download?
Today I visited http://www.asp.net/ajax/downloads/ page to download standalone version of Microsoft Ajax 3.5 client library and used "Download the AJAX Library" button as I surely did many times previously. The landing page contained only the following: "This page has been removed. Please visit the ASP.NET Developer Center home page for further information." But I could not find any relevant "further information" on the ASP.NET Developer Center home page. Only a link to the same http://www.asp.net/ajax/downloads/ page I came from. Could someone explain me what happened to this download?
-
Firefox 3. XSLT Processing Engine bug?
I stumbled upon really strange issue while researching unexpected behavior of existing web application under Firefox 3.
-
.NET Framework 1.1 Service Pack 1 and Page.RegisterStartupScript
First, if you are are developing exclusively ASP.NET 2.0+ applications, sorry, there is nothing interesting for you in this post.
-
Array.prototype.slice vs manual array creation
In a constant pursuit of new and more effective ways to implement common JavaScript code patterns I've recently found out (sorry for such probably trivial finding but it was a real news for me) that Array.prototype.slice method can be easily used to make instance of Array from an arguments object.
I instantly decided to use it in my current projects. Currently the same task is performed by simple iteration through members of the arguments object and filling in respective members of a new Array instance.
I was pretty sure that performance of the new variant will be significantly better. It is a native method call after all instead of interpreted JavaScript code. Nevertheless, I wanted to run simple comparison tests and wrote following code: