Posts Categorized: Javascript

Pros and Cons of using latest jQuery CDN

Posted by & filed under Javascript.

It is not a good idea to use the following CDN jQuery in your live (deployed) sites. This always serves the latest version. If you are using jQuery plugins written by yourself or 3rd party you can find that these plugins break when a new release of jQuery is pushed. This happened to me recently… Read more »

Timthumb and Ajax

Posted by & filed under Ajax, Javascript, PHP.

Timthumb is a great tool for cropping/resizing images dynamically at the time the page loads. But what if you want to update the src of an image tag with a new image, for example, in an image carousel? You can use timthumb via an ajax call, but the resulting data is binary so you have… Read more »

Highlighting imagemap borders

Posted by & filed under Javascript.

So you have an imagemap and you want to show the border on mouseover – not the image border – the imagemap boarder. To the rescue is a JQuery plugin by a guy called David Lynch. Here’s a working example: Here’s a link to David’s documentation: http://davidlynch.org/js/maphilight/docs/

Resize iframe

Posted by & filed under Javascript.

In the parent frame: In your iframe: Call alterFrameSize() using the body onload() method in your iframe.

Date select javascript widget

Posted by & filed under Javascript.

Sorry – this is just a note to self! Have a look at the Event_Ticker in UCB home/files/Event_Ticker – I didn’t use it, but the widget is all working and configured in ticker.php – just uncomment a couple of lines