overlay and expose 1.0.0 2009-02-15 14:17:50.0
jquery.overlay 1.0.0
jquery.overlay has undergone a quite massive update. Rewritten source code, documentation and a new demo section. Here are the new features.
- ability to place multiple simultaneous overlays on the same page
- toally new JavaScript API
- ability to trigger overlay programmatically
- ability to define where growing animation starts and/or ends and how large the overlay is in the beginning and in the end. this feature allows you to make very different kind of overlays. Our fake fullscreen demo uses a custom start positioning and dimensions on the overlay.
- exeptions are caught on user defined callback functions
- overlay's background images are preloaded into browsers cache by default. can be disabled from configuration
- each callback now receives this API as their this- variable (as proper programs should). note this may break your previous installation.
- much cleaner source code. easier to understand for newcomers
- a new overlay demo section
For the most part your old installations should work out of the box. However if you have used callback functions such as onLoad then this- variable is no longer a pointer to the growing background image. Instead it is a pointer to the JavaScript API.
jquery.expose 1.0.0
New version of jquery.expose has the same story. It has undergone a thorough update. Rewritten source code, documentation and a new demo section. Here are the new features.
- totally rewritten source code and a new JavaScript API
- ability to trigger expose programmatically
- new callback functions: onBeforeLoad, onLoad abd onBeforeClose
- inside every callback function this- varialbe is a pointer to the API
- $.expose is a pointer to the currently or previously active expose API
- new configuration options: maskId, zIndex, loadSpeed, closeSpeed and alert
- a new expose demo section
Exposing is initialized the same way as before and your previous installation may work without problems. However if you have closed your expose programmatically with $.unexpose() function this won't work anymore. This function is replaced with new $.expose.close() function. All expose related functions now share the same namespace: $.expose.
Overlay with Expose: Migrating to new version
You may have setup overlaying on your pages with expose feature. In previous versions this happened following way.
// old way
$("button[rel]").overlay({
// perform exposing
onBeforeLoad: function() {
this.expose();
},
// close exposing
onClose: function(content) {
$.unexpose();
}
});
In new version things are a little different and here is the identical setup with versions 1.0.0:
// new way way
$("button[rel]").overlay({
// perform exposing. this- varialbe is a pointer to overlay API
onBeforeLoad: function() {
this.getBackgroundImage().expose();
},
// close exposing
onClose: function(content) {
// use expose API to close exposing
$.expose.close();
}
});
You can see one example setup from this demo about overlayed videos with expose.
Flowplayer news
Of course we have done some Flowplayer coding as well. Here is a summary of new stuff.
- new version of embed plugin allows you to embed a selected clip on the playlist
- many people may have noticed that they can now subscribe to forum threads so that they will receive a notification via email when someone has posted to the thread they wish to follow.
- a new ajax scripting demo to show how to load content from the server for each clip on the playlist
- flowplayer tag on the forums can now be used to demonstrate commercial features, too. this is configured by supplying key property in the configuration. here is an example of flowplayer tag in action
- new version of audio plugin fixed behavior with playlists. The audio was left playing when moving to another clip.
- new version of playlist plugin fixed an important IE bug on internal playlists.
That's for now. Expect to see more goodies to be published on this blog.