YAHOO! YUI Connection Wrapper demo.

This is a simple demonstration of the connectionWrapper class,which I wrote to wrap the "YAHOO.util.Connect.asyncRequest" class, along with some simple, animated transitions. In this example I've slowed the transition down to a second, but in real applications, it should be a lot faster, I usually have it at 0.2 seconds, so the fade is almost imperceptible

Usage is very simple, just create a new instance of the connectionWrapper class, and call the startConnection method. This allows the class to be extended to include various events, onComplete for example, but this version does not implement that.

I origionally wrote this page to try and demonstrate a problem I was having with the context menu and reloading the content of a div, but as you can see, it works fine in this example.

If you have any questions, feel free to ask them via the Yahoo YUI forum

Reload Context menu


Right Click Me.

About the author

Stuart Grimshaw is a Senior Developer for SDL International, where I develop the latest in user friendly web front ends for enterprise level applications

all views on this site (and all my personal sites) are my own, and in no way reflect the views of my employer.