simple. error. popup.js

The function in this script just makes a little alert box with a close button.

Dependencies

CNETstickyWin.js, stickyWin.Modal.js, stickyWin.default.layout.js
Assetsimages located at www.cnet.com/html/rb/js/assets/global/simple.error.popup (see css inline)
Summary
simple. error. popup.jsThe function in this script just makes a little alert box with a close button.
Functions
simpleErrorPopupThis function just makes a little alert box with a close button.
Change Log$Source: /cvs/main/flatfile/html/rb/js/global/cnet.global.framework/common/utilities/simple.error.popup.js,v $ $Log: simple.error.popup.js,v $ Revision 1.10 2007/05/11 00:05:29 newtona adding clearfix css to all sticky win instances

Functions

simpleErrorPopup

var simpleErrorPopup = function(msghdr,
msg)

This function just makes a little alert box with a close button.

Arguments

msghdrthe caption for the window
msgthe error message

Example

simpleErrorPopup('Woops!', 'Oh nos! I've got five Internets open!');

Returns

An instance of StickyWinModal

Change Log

$Source: /cvs/main/flatfile/html/rb/js/global/cnet.global.framework/common/utilities/simple.error.popup.js,v $ $Log: simple.error.popup.js,v $ Revision 1.10 2007/05/11 00:05:29 newtona adding clearfix css to all sticky win instances

Revision 1.9 2007/05/07 21:38:33 newtona zindex tweak so that error popup is higher than the default stickywin (in case there’s an error on a page with a stickywin)

Revision 1.8 2007/03/08 23:31:22 newtona strict javascript warnings cleaned up removed deprecated dbug loadtimers dbug enables on debug.cookie()

Revision 1.7 2007/02/21 00:42:30 newtona docs update

Revision 1.6 2007/02/21 00:31:32 newtona using default sticky win html now.

Revision 1.5 2007/02/06 18:12:26 newtona changed the way that the css was added to the dom. only does this once now, even if you execute the function numerous times.

Revision 1.4 2007/01/26 05:56:03 newtona syntax update for mootools 1.0 docs update

Revision 1.3 2007/01/22 21:55:18 newtona changed image paths to www.cnet.com updated stickyWin namespace to StickyWin

Revision 1.2 2007/01/11 20:56:05 newtona docs change

Revision 1.1 2007/01/09 02:39:35 newtona renamed addons directory to “common” directory

Revision 1.2 2007/01/05 18:54:51 newtona some documentation changes

Revision 1.1 2007/01/05 18:32:04 newtona first check in

var simpleErrorPopup = function(msghdr,
msg)
This function just makes a little alert box with a close button.
Creates a div within the page with the specified contents at the location relative to the element you specify; basically an in-page popup maker.
Creates a div within the page with the specified contents at the location relative to the element you specify; basically an in-page popup maker.
Implements drag and resize functionaity into StickyWinFx.
Creates a StickyWin that optionally fades in and out, is draggable, and is resizable (requires stickyWinFx.Drag.js).
Provides functionality to overlay the window contents with a semi-transparent layer that prevents interaction with page content until it is removed.
This script extends StickyWin and StickyWinFx classes to add Modalizer functionality.
Creates an html holder for in-page popups using a default style.
Creates a StickyWin that uses the functionality in Modalizer to overlay the document.