AndreaCfm

Cold Fusion and jQuery Ideas and Resources

Pop Up Windows

A nice and tiny plugin use 100% valid and unubintrusive code for creating popup windows. With the normal popup settings is also provided one more choice for centering the window in the browser screen.

Find more examples and documents in the Api Browser Page

Opens a popupwindow with default settings

Just add to the cfjq_popup custom tag the url="http://www.jquery.com" desired and place the anchor text inside the opening and closing tag

<cf_cfjq_popup url="http://www.jquery.com">jQuery Homepage</cf_cfjq_popup>
jQuery Homepage

Change the windows size

Add width="700" height="300" toolbar="1" scrollbar="1" and the link will be display in a window with new dimensions this time with toolbar and scrollbar displayed

<cf_cfjq_popup url="http://www.ajaxian.com" width="700" height="300" toolbar="1" scrollbar="1">Ajaxian</cf_cfjq_popup> 
Ajaxian

Center the window with defaut settings.

Add center="1" In case left and top attributes are defined will be overwritten. Window is centered base on itself dimension and screen dimension.

<cf_cfjq_popup url="http://www.jquery.com" center="1">jQuery Homepage</cf_cfjq_popup> 
jQuery Homepage