Shaun Mccran

My digital playground

17
A
P
R
2011

Book preview: JQuery 1.4 Animation Techniques: Beginners Guide

I've just been sent a preview copy of the new JQuery 1.4 Animation techniques: beginners Guide from Packt publishing.

It is pitched as:

view plain print about
1Quickly master all of jQuery's animation methods and build a toolkit of ready-to-use animations using jQuery 1.4

I'll be reading through it over the Easter break and putting a review up here, so keep an eye out.

In the meantime you can see a synopsis and read a preview chapter here:

https://www.packtpub.com/jquery-14-animation-techniques-beginners-guide/book

13
A
P
R
2011

Triggering functions when closing a fancybox pop up

The FancyBox JQuery plugin is a popular lightbox style plugin that allows you a variety of options to 'pop' different types of content up into a users view.

I needed to have the parent page change when the user had performed an action within the pop up. But how to do this?

FancyBox (http://fancybox.net/) has a 'onClosed' option to allow you to embed a function call whenever the user closes the lightbox.

The format of this is a little tricky, so here is an example:

view plain print about
1// pop up handler
2$.fancybox({
3    'autoDimensions':    false,
4    'speedIn'            : 600,
5    'speedOut'            : 200,
6    'overlayShow'        : true,
7    'width'            : 440,
8    'height'            : 340,
9    'type'            : 'iframe',
10    'scrolling'            : 'no',
11    'transitionIn'        : 'elastic',
12    'transitionOut'        : 'fade',
13    'enableEscapeButton'    : 'true',
14    'overlayOpacity'        : 0.5,
15    'title'            : '',
16    'href'             : 'yourpage.htm',
17    'onClosed'            : function() { alert('closed'); }

You can build any function you want in this call, it is normal JavaScript after all, if you just wanted to reload the page you could have a refresh function:

view plain print about
1function() {
2
3parent.location.reload(true);
4
5}

This seems to work for any method of closing the Fancybox as well, so it will always fire.

31
M
A
R
2011

Plesk 10.1.1 release adds ColdFusion 9 support

It seems as though the newest version of the server management software 'Plesk' v 10.1.1 is now officially ColdFusion 9 compatible.

Previously Plesk could only integrate with ColdFusion 8 as it caused instability issues with ColdFusion 9.

There isn't much about this in the release notes, just a simple statement.

view plain print about
1ColdFusion 9 support. A new version of the popular site developing tool is available.

The full release notes article is here: http://download1.parallels.com/Plesk/PP10/10.1.1/release-notes/parallels-plesk-panel-10.1.1-for-windows-based-os.html

I'm hoping it works well as I've just commissioned a new server running both these software versions.

28
M
A
R
2011

Getting Video thumbnails from YouTube

I want to display an image thumbnail on a page, so that a user can click on it and the video will pop up in a lightbox. But how do I get a thumbnail image of the video I want? This article shows you how you can quickly and easily use a Youtube URL to get video thumbnails.

There is a demo of this here: http://www.mccran.co.uk/examples/youtube-thumbs/

[ More ]

_UNKNOWNTRANSLATION_ /