jQuery 1.4 Alpha 1 Released

Hot off the presses: jQuery 1.4 Alpha 1 is released! This is the first alpha release of jQuery 1.4. The code is stable (passing all tests in all browsers we support), feature-complete (we’re no longer accepting new features for the release), and needs to be tested in live applications.

Get it here!

Advertisements
Posted in AJAX. Tags: , . Leave a Comment »

Microsoft AJAX CDN

Microsoft Ajax Content Delivery Network

The Microsoft Ajax content delivery network (CDN) enables you to easily add ASP.NET Ajax Library and jQuery scripts to your Web applications. You can start using the ASP.NET Ajax Library or jQuery simply by adding a <script> tag to your page that points to Ajax.microsoft.com.

By taking advantage of the Microsoft Ajax CDN, you can significantly improve the performance of your Ajax applications. The contents of the Microsoft Ajax CDN are cached on servers located around the world. In addition, the Microsoft Ajax CDN enables browsers to reuse cached JavaScript files for Web sites that are located in different domains.

Scott Guthrie has a nice write up:  Announcing the Microsoft AJAX CDN

Posted in AJAX, ASP.NET. Tags: . 1 Comment »

UpdatePanel Async Postsback slow in IE…Part 3

So, I have received an updated script from Microsoft for KB 2000262.  The issues I found in the last script are now fixed.  In my testing so far it appears to be faster and stable.  The JS function is below, I am sure the KB will be updated soon.

    function disposeTree(sender, args) {
        var elements = args.get_panelsUpdating();
        for (var i = elements.length - 1; i >= 0; i--) {
            var element = elements[i];
            var allnodes = element.getElementsByTagName('*'),
                length = allnodes.length;
            var nodes = new Array(length)
            for (var k = 0; k < length; k++) {
                nodes[k] = allnodes[k];
            }
            for (var j = 0, l = nodes.length; j < l; j++) {
                var node = nodes[j];
                if (node.nodeType === 1) {
                    if (node.dispose && typeof (node.dispose) === "function") {
                        node.dispose();
                    }
                    else if (node.control && typeof (node.control.dispose) === "function") {
                        node.control.dispose();
                    }

                    var behaviors = node._behaviors;
                    if (behaviors) {
                        behaviors = Array.apply(null, behaviors);
                        for (var k = behaviors.length - 1; k >= 0; k--) {
                            behaviors[k].dispose();
                        }
                    }
                }
            }
            element.innerHTML = "";
        }
    }


Part 2
Part 1

UpdatePanel Async Postsback slow in IE….what!?

How can it be that this problem only occurs in IE.  It is their technology on their platform!

When using Internet Explorer to browse a page that contains an UpdatePanel, there is a delay (often anywhere between 10 seconds and 45 seconds or more) after clicking a page element that initiates an async postback. The delay is not experienced when using browsers other than Internet Explorer.

FYI,  FireFox’s performance is superior on the same code base in my experiences so far.  I have opened up a case with Microsoft, so we will see what the IE team has to say.  More to come…

http://support.microsoft.com/kb/2000262