Monthly Archives: October 2007 - Page 2

Ajax Data Transfer Methods – XMLHttpRequest Alternatives

XMLHttpRequest is not the only way to implement Ajax – in fact it is not even the most popular one. Take a quick look at the various transport methods in Ajax…

XMLHttpRequest

This is the W3C standard – most modern browsers supports this – browsers like…

* Firefox
* Opera
* Konquror
* Internet Explorer 7
* etc.

ActiveX(XMLHTTP)

This is the preferred method in Internet Explorer. Currently this is the most used method for ajax calls – due to the simple fact that IE has the majority market share. This is basically a different name for XMLHttpRequest – except for the initilization, all the API calls are the same as in XMLHttpRequest(thank God for that).

IE did not have a native XMLHttpRequest object(dispite the fact that they invented the concept). XMLHttpRequest was first introduced to the world as an ActiveX control in Internet Explorer 5.0. Fortunatly, they have native support for XMLHttpRequest from IE 7 onwards.

IFrame

This is used as a fallback for older browsers by some ajax libraries. In this method you load the URL in a (typically) hidden iframe element. Once the iframe has compleated loading, you can read the contents of the iframe. That way, you have a working Ajax system even in very old browsers.

One of the main advantages of this method is that it does not have the cross-domain issue(also known as the same origin restriction).

Image Source

This is not a popular transfer method – in fact, I have seen it in use only once. The basic concept is that you can point an image’s src to a server-side script. That script can do the necessary operation on the server and then return the image.

The major disadvantage of this method is that data can only be passed to the server – the server cannot pass data back to the client. Well, it is possible – if you set a cookie on the server and then read it in the client side. Trust me, you don’t need that kind of headaches – Ajax development is enough trouble as it is.

But it has a few advantages too…

* No cross domain issue
* Works with old browsers

Script Tag

This uses the same principle as the Image method – the only difference is that you use a script instead of an Image tag. That way, the server can return data to the client side as well.

This is a very popular method in the mashup scene. The main reason is this method don’t have the cross domain issue. For example del.icio.us offers this as a choice to get data from their site.

This method is also possible using a stylesheet – but I don’t want to go into that.

Non Javascript methods
Flash

Flash can be used to get data from the server and pass it to the javascript code.

Java Applets

I am sure that Java Applets can be used for this too – can anyone confirm this?

read source

Who want to debug .NET Framework?

Raise hands!

Today from Microsoft anounced that they will be including .NET Framework libraries source code with .NET 3.5 and VS 2008 release later this year.

Here is a part from ScottGu’s post. You can read the rest here.

We’ll begin by offering the source code (with source file comments included) for the .NET Base Class Libraries (System, System.IO, System.Collections, System.Configuration, System.Threading, System.Net, System.Security, System.Runtime, System.Text, etc), ASP.NET (System.Web), Windows Forms (System.Windows.Forms), ADO.NET (System.Data), XML (System.Xml), and WPF (System.Windows). We’ll then be adding more libraries in the months ahead (including WCF, Workflow, and LINQ). The source code will be released under the Microsoft Reference License (MS-RL).

You’ll be able to download the .NET Framework source libraries via a standalone install (allowing you to use any text editor to browse it locally). We will also provide integrated debugging support of it within VS 2008.

VS 2008 will include support to automatically retrieve the appropriate .NET Framework source files on demand from Microsoft. This means that the source code for the ASP.NET GridView and BaseDataBoundControl classes above do not have to already be installed on the machine before we started the debugger. Instead, when we use F11 to step into their implementation VS can automatically download the source files from Microsoft and open it within the IDE.

By downloading the files dynamically we can also ensure that the matching source files always line-up with the particular version of the .NET Framework on your machine (for example: if you have a GDR or Service Pack Patch installed on your machine, we’ll make sure to download the source file that corresponds to it).

Summary

Having source code access and debugger integration of the .NET Framework libraries is going to be really valuable for .NET developers. Being able to step through and review the source should provide much better insight into how the .NET Framework libraries are implemented, and in turn enable developers to build better applications and make even better use of them.

Ext 2.0 Alpha Release!

ext2 Ext 2.0 Alpha Release!

The development of Ext 2.0 continues to move forward with some exceptional new features being rolled into the framework.

The team has really focused on enhancing the desktop-like experience that Ext already provides by introducing new functionality, improving performance and keeping the overall file size down.

New Features

Ext 2.0 framework and will make developing desktop-like application substantially easier. These include:
* Scrolling Tabs
* Highly configurable single-level column grouping capabilities as well as summary rollups at the group level.
* Anchor layout in forms to ensure a consistent size and position for form fields regardless of browser size.
* Treeviews that support additional columns for each leaf node.

New 2.0 Samples

Prior to this release, the demos for Ext were consolidated into the API viewer making it cumbersome to differentiate what was a demo and what was part of the API document viewer. We have now detached the demos and organized them onto a standalone page. The applications are also grouped into specific subsections to allow Ext developers to drill down into applications that show specific Ext functionality.

Portal Samples

Building dashboard-style applications similar to iGoogle or PageFlakes are all the rage so we’ve included a demo application as a foundation for building a portal application. The demo includes functionality for smooth repositioning of the portlets via drag and drop functionality and each portlet has the standard minimize and close functionality found in similar dashboard implementations. In addition, each portlet has a settings icon which is bound to a custom event handler and allows Ext developers to define behaviors that their users can apply to specific portlets.

More samples here

Buzzword – Flash Word Processor

Buzzword – Flash Word Processor

buzzword Buzzword   Flash Word Processor
Just landed on their page and was suprised! This is actually a Flash Word processor! Where is the good old Ajax and HTML rich textareas?
As I kept reading this seems to be quite stable and good enough to be used as every day application.
Cant wait to be approved for an account and get my hands on this software!
Here is link to their web site.

Ajax and Javascript resources

Ajax and Javascript resources

You probably remember MiniAjax about which I posted way back in March.
Well now I finally got the chance to update with two not really new, but must visit web sites. The first one is AjaxRain.com, the site dedicated to aggregating Ajax, JavaScript and RIA controls & libraries. On the web site it says that should contain 755 + Ajax/Javascript/Dhtml examples and demos to download.
logo Ajax and Javascript resources

The second one is WebAppers – Only the Best and Free Resources for Web Application Developers. This one also contains significant amount of controls and plugins segmented into different categories.
logo Ajax and Javascript resources