Wildbit

The Blog

Thoughts on building web apps, businesses, and virtual teams.

Twitter

18 Dec Modalbox 1.6.0 ← Go back

Posted by Andrew Okonetchnikov on December 18, 2007 — 8 Comments

Andrew Okonetchnikov

A long awaited update of the Modalbox library has been released. It has got 1.6.0 as a version number, as it includes support for the latest Prototype (1.6.0) and Script.aculo.us (1.8.0) libraries, as well as lots of other improvements.

First of all I would like to thank all Modalbox community members for helping me to support it. It’s really exciting having so much feedback from all of you! Now let’s move to the updates included into 1.6.0.

This release has lots of bugfixes as well as a few really neat new features. I’d like to point out two new methods: resizeToContent and resizeToInclude.

resizeToInclude(element [, options]) method allows you to increase Modalbox height by a given element’s height. element might be an ID of an element or a reference to a DOM element.

resizeToContent([options]) method adjusts Modalbox height to fit actual content. For example, imagine you performed some modifications of the loaded content via JavaScript (i.e., removed some node) and you want to reduce Modalbox height appropriately — just call this method to do the trick.

You can see a usage example on the Modalbox page.

The code was also heavily refactored keeping in mind the latest Prototype 1.6.0 additions, so there are no deprecated methods being used. As you might already know, Prototype 1.6.0 includes the DOM builder implementation, so, starting from 1.6.0 Modalbox doesn’t rely on builder.js from script.aculo.us library anymore. It means, Modalbox became more lightweight and only requires effects.js from the script.aculo.us package.

Also added is a better support of Internet Explorer 7, which means that the page will not be scrolled on top, and select elements will not be hidden anymore for that browser. IE6 still has these points to improve though, which I’m planning to implement in the upcoming releases.

One more useful addition is beforeHide callback (instead of onHide) which fires right before the hiding sequence. It might be useful to retrieve form values before closing the Modalbox window.

For more details see the change log.

8 Comments

The modalbox example page link is dead.

Greg Newman — December 18, 2007, 3:43 pm

Thanks Greg. The link has been fixed.

Andrew Okonetchnikov — December 18, 2007, 4:28 pm

Hi, just wanted to say – that’s seriously cool. Thanks and I can’t wait to see more from your labs. You need a digg button..

Lawrence — January 18, 2008, 6:48 pm

hopefuly the cooltips will be soon moved to prototype 1.6 ;)

msznapka — February 25, 2008, 5:40 am

Your examples work fine in IE 6. However, I have a modalbox that makes a URL call and displays fine in firefox. In IE I don’t getting anything, not even a javascript error. Can you provide any pointers on what to look for? I tried using the Windows Script Debugger but it didn’t help.

TIA

GP

Grayson Pierce — February 29, 2008, 11:57 pm

Hi,

Modalbox is working fine on ie7,firefox & crome. But it doesnt work on ie8.

please help

Regards
Swapnil

swapnil — October 17, 2008, 1:53 am

The modalbox seems to be working in IE only.
I have Firefox 3.1 for which it fails. It also fails in Google Chrome 3.154.9.

Riz — October 31, 2008, 7:29 am

Modalbox was tested in all major browsers and it’s fully working in Firefox 2 & 3, Safari 2 & 3, IE6, IE7, Chrome, Opera. It’s not yet working in IE8 though. See http://wildbit.com/labs/modalbox for examples.

Andrew Okonetchnikov — October 31, 2008, 7:52 am

Write a comment

* required
* required

← Go back

Get in Touch

Wildbit, LLC

Work 20 North 3rd St, 2nd Floor
Philadelphia, PA 19106 USA

Google Maps
 
 
Fax
+1 (267) 200 0835
Email
IndyHall

We work at IndyHall. Coworking is more than just space.