Alex Mueller on Software and Technology 
Saturday, January 20, 2007

Popup blockers would not exist if popups were not annoying. The same can be said for mosquito spray. With the omnipresence of Ajax and dynamic HTML on the web, the popup is a throwback to the early web days, like Izod shirts and the Brat Pack were to the Eighties, and these make me cringe.

In an effort to remove these popup nuisances, I have been looking into the concept of LightBox. LightBox is a script used to inlay images in a page. Out of the box, this works perfectly for photos, but for content, I needed something else.

GreyBox is a solution I stumbled across and it is exactly what I need. Implementing it was nearly effortless. Out of the box, I can reuse all those ASPX pages I have for my popup windows. The only tweaks it required were to determine how to close the GreyBox from within itself, programmatically.

I will not show you much as far as examples because they can be found on the GreyBox website. However, I will show you how simple it is to open and close the script.

function ShowGreyBox(title,url)
{     
    return GB_showCenter(title, url);
}

function HideGreyBox()
{
    parent.parent.GB_hide();
}

Investigate and see GreyBox in action. Thanks Amir for creating this beautiful script.

Saturday, January 20, 2007 9:39:42 AM (Mountain Standard Time, UTC-07:00) | Comments [0] | JavaScript#
Comments are closed.
MuellerDesigns.net
Search
On This Page
PowerShell Documentation
Automate Daily Tasks with PowerShell
SketchPath XPath Editor
Software Testing - Revisited
Architecting Buildings and Software
NBCOlympics.com with Silverlight
Marker Interfaces and C# Attributes
The Phone Screen
Working with ASP.NET MVC and MvcContrib
Thanks to BDD
Twitter
The Opposite of a Singleton?
Removing Duplicate Code in Functions
Add Vista Themes to Longhorn
Changing File Ownership In Vista and Longhorn
Most Popular
JavaScript ReplaceAll Functionality
What is polymorphism?
What is composition?
Sorting with IComparable and IComparer
Applying the Observer Pattern in ASP.NET
MVP in ASP.NET
What is abstraction?
What is encapsulation?
What is a class?
What is inheritance?
Authentication in ASP.NET
Calendar Controls
XPathNavigator.CheckValidity new for 2.0
SQL Server 2005 Connection Issues
Auto-attach to process '[####] aspnet_wp.exe' on m...
What is an object?
FreeTextBox
VMWare and VPC
An Example of Reflection using C#
Caring for the Team
Archive
Links
Categories
My Local Blog Map
Blogroll
About
Powered by:

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2009
MuellerDesigns.net

Sign In

Help Those In Need
The Hunger Site
Ronald McDonald House Charities (RMHC) of Western Washington & Alaska