Archives
-
ASP.NET 3.5 Unleashed Errata: ASP.NET AJAX Authentication
Well, I guess it is too much to hope that there would not be any errors in an almost 2,000 page book. Bertrand Le Roy sent me an email pointing out a security hole in one of my code samples in ASP.NET 3.5 Unleashed. The problem is in Chapter 33, Using Client-Side ASP.NET AJAX.
-
Creating JavaScript Properties in ASP.NET AJAX
JavaScript (or more accurately, ECMAScript 3.0) does not support properties. JavaScript objects do not have properties in the same sense as C# or VB.NET objects have properties. That’s unfortunate, since there are benefits to C# and VB.NET properties:
-
JavaScript Magic Properties: Using __count__ , __proto__ , and __parent__
Two of the Mozilla implementations of the JavaScript engine, SpiderMonkey and Rhino, support a special list of magic properties. Because SpiderMonkey is the JavaScript engine used by Firefox, this means that you can use these magic properties in JavaScript code that is executed within the Firefox browser. Unfortunately, these magic properties are not supported by Microsoft Internet Explorer or Opera. There is no expectation that any browser other than a Mozilla browser will ever support these properties since the properties are not part of the ECMAScript standard that defines the JavaScript standard.