1 | == Installation/Usage |
---|
2 | |
---|
3 | Just copy windows.js in your javascript directory, and default.css + default directory in your stylesheets directory |
---|
4 | See samples/index.html for more details and go on my web page : http://prototype-window.xilinus.com |
---|
5 | |
---|
6 | == Change log |
---|
7 | - 04/23/07 V 1.3 |
---|
8 | - Added: getTitle |
---|
9 | - Added: blur/focus function on Windows module |
---|
10 | - Added: onBlur event |
---|
11 | - Fixed: WindowCloseKey works with URL content (iframe) |
---|
12 | - Fixed: Modal window with a parent != document.body |
---|
13 | - Updated: prototype 1.5RC3 |
---|
14 | - Updated: Dialog handle resizable,minimizable, maximizable, draggable and closable options |
---|
15 | - 02/27/07 V 1.2 |
---|
16 | - Added: gridX and gridY constructor's options to snap move and resize |
---|
17 | - Added: Effect on modal overlay (fade/appear) only if effects.js in included. |
---|
18 | You can change effect options (Windows.overlayShowEffectOptions and Windows.overlayHideEffectOptions). |
---|
19 | |
---|
20 | - Fixed: Multimodal mode. |
---|
21 | - Fixed: Works on WebKit. |
---|
22 | |
---|
23 | - Beta: effects on minimize and maximize. You need to include window_effects.js to have them. |
---|
24 | |
---|
25 | - 02/17/07 V 1.1 |
---|
26 | - Constructor has been simplified, now you can just do win = new Window(). By default id is automatically generated and can be passed as options |
---|
27 | win = new Window({id: "my_id", width: 100, height: 100}) |
---|
28 | Backward compatibility with old constructor win = new Window("my_id", {width: 100, height: 100}) |
---|
29 | - Observer event can be passed as window option: win = new Window({onClose: function() {alert('close')}}) |
---|
30 | - parent option can be id or element |
---|
31 | - delegate has been removed (not really usefull) and0 setCloseCallback has been addedinstead. (It could be also passed as a constructor's option closeCallback: your_callcabck) |
---|
32 | your_callcabck must return true to be able to close the window |
---|
33 | - add onMove event |
---|
34 | - fix constraint for minimized window |
---|
35 | - destroyOnClose could be passed as constructor's option: win = new Window({destroyOnClose: true}) |
---|
36 | - constraint works for maximized windows |
---|
37 | - Dialog ok and cancel parameters has been renamed to onOk and onCancel for coherence (ok and cancel still works) |
---|
38 | - Update to Prototype 1.5 and script.aculo.us 1.7 |
---|
39 | |
---|
40 | - 01/14/07 V 1.00 |
---|
41 | - add changeClassName to change look and feel dynamically. |
---|
42 | - add constraint move. Constraint can be on a div or document. |
---|
43 | - full top and bottom bar are use to move window. |
---|
44 | - fixed computation of window width or height. |
---|
45 | - add setURL/getURL/refresh and setHTMLContent. Content can be change dynamically. |
---|
46 | - add tooltip.js add on. It's an add-on to add dynamically tooltips on a webpage (see samples/tooltips/tooltip.html) |
---|
47 | Thanks to Jonathan Modell of 2moromedia.com. |
---|
48 | |
---|
49 | - 12/06/06 V 0.99 |
---|
50 | - remove addClass that automatically tries to include default.css |
---|
51 | - add wired move/resize |
---|
52 | - fix recenterAuto |
---|
53 | - add show to WindowStore to be able to open a window the first time, wihtout any cookie (check samples/window_store/html) |
---|
54 | |
---|
55 | - 11/06/06 V 0.98 |
---|
56 | - new optional behavior for multi-level modal window. |
---|
57 | - Two new add-ons (in window_ext.js file) |
---|
58 | + WindowStore to save open/close window status. |
---|
59 | + WindowCloseKey to handle escape key (or any keys) to close windows/dialogs |
---|
60 | |
---|
61 | - 10/26/06 V 0.97 |
---|
62 | - add recenterModal to constructor |
---|
63 | - setAjaxContent eval response request |
---|
64 | - modal window multi level |
---|
65 | - fix close/closeAll issues |
---|
66 | - add addCss (auto add default.css) |
---|
67 | |
---|
68 | - 09/26/06 V 0.96.3 |
---|
69 | - Fixed onClose, no more memory leak and nore issues with sound on IE (even on dialogs) |
---|
70 | - add getLocation |
---|
71 | - Debug select problem on Firefox |
---|
72 | - change mouseup event to onclick event |
---|
73 | - Fixed event propagation on mininize/maximize/close |
---|
74 | - Add frameborder=0 |
---|
75 | - Add prototype_window_class_helper.rb by Jorge DÃaz (http://xurde.info) |
---|
76 | |
---|
77 | - 07/22/06 V 0.96.2 |
---|
78 | - Fixed select issue in modal window |
---|
79 | |
---|
80 | - 07/15/06 V 0.96.1 |
---|
81 | - Bugs fixed |
---|
82 | - Add isVisible() |
---|
83 | - Update debug.js |
---|
84 | |
---|
85 | - 07/11/06 V 0.96 |
---|
86 | - New events onShow, onHide, onFocus |
---|
87 | - isVisible() |
---|
88 | - Autofit width or height if width or (NOT AND) height is set to null in the constructor |
---|
89 | - updateWidth / updateHeight if you need to update width or height (useful after changing window content if you do not want scrollbars) |
---|
90 | - Add top, left to showCenter(modal, top, left) optional arguments if you need to center only left or top value. |
---|
91 | |
---|
92 | - 06/30/06 V 0.95 |
---|
93 | - Now you can set windows or dialogs content with an Ajax request!! |
---|
94 | - Fixed IE issue when you destroy window with an url that embeds mp3. |
---|
95 | - Fixed buttonClass issue for Dialog. |
---|
96 | - Update samples |
---|
97 | |
---|
98 | - 06/24/06 V 0.90 |
---|
99 | - Valid XHTML 1.0 Strict! |
---|
100 | - Fixed minimize function |
---|
101 | - Fixed destroy on window without hide effects |
---|
102 | - No more text selection while dragging |
---|
103 | - Add onMinimize/onMaximize event |
---|
104 | |
---|
105 | - 06/19/06 V 0.85.2 |
---|
106 | - Remove undeclared vars |
---|
107 | - Set top/left to 0 if not specify |
---|
108 | - Destroy objet after hide effect instead of before effect instead |
---|
109 | - getSize |
---|
110 | - add extended_debug.js (from Jason Pollard) |
---|
111 | |
---|
112 | - 06/13/06 V 0.85.1 |
---|
113 | - IE bug fixed |
---|
114 | |
---|
115 | - 06/12/06 V 0.85 |
---|
116 | - Autofit width or height for Dialog |
---|
117 | - Better Move/Resize over |
---|
118 | - Allow select in modal window (even on IE) |
---|
119 | - WARNING, ok callback for Dialog should returns true to close the dialog |
---|
120 | - better window HTML code (no more div inside the td) |
---|
121 | - Add themes |
---|
122 | |
---|
123 | - 05/23/06 V 0.80 |
---|
124 | - Add setTitle |
---|
125 | - Add setStatusBar |
---|
126 | - Store minimize/maximize in the cookie (Thanks to Ifran) |
---|
127 | - Add onload constructor parameter (Thanks to Ifran) |
---|
128 | - Add button class for dialog (Thanks to Felix Shnir) |
---|
129 | |
---|
130 | - 05/09/06 V 0.75 |
---|
131 | - Update with Script.aculo.us 1.6.1 and Prototype 1.5.0_rc1 |
---|
132 | - Remove PNG for dialog overlay, use opacity as done in lightbox V2 |
---|
133 | - Add Windows.focusedWindow and Windows.closeAll |
---|
134 | - Add name to iframe in case of url window |
---|
135 | - Clean up code, use _ for private function (just name convention) |
---|
136 | - Add Dialog.info function, usefull for for submit or notice info (in Rails) |
---|
137 | - Add minimize and maximize buttons |
---|
138 | - Add alert_lite.css without any images |
---|
139 | - Debug |
---|
140 | |
---|
141 | - 04/15/06 V 0.70 |
---|
142 | - Add autoposition in setContent. The window will at the element location |
---|
143 | - Add draggable/closable parameter if you need to specify is the window is draggable/closable or not |
---|
144 | - Add parent parameter if you need a specific parent instead of body |
---|
145 | - Better resize |
---|
146 | - Add setCookie to store window location/size in a cookie |
---|
147 | - Add parent.html sample |
---|
148 | |
---|
149 | - 04/05/06 V 0.65 |
---|
150 | - Update to Prototype 1.5.0_pre1, script.aculo.us 1.6.0 |
---|
151 | - Add setDestoyOnClose |
---|
152 | - Add Windows Observer with onStartResize(), onEndResize(), onStartMove(), onEndMove(), onClose(), onDestroy() events |
---|
153 | - Add setContent(id, autoresize) |
---|
154 | |
---|
155 | - 03/29/06 V 0.6 |
---|
156 | - Add Window delegate to manage close action |
---|
157 | - Add modal mode and Dialog class with common panels: alert, confirm |
---|
158 | - Clean HTML code and change caracters to lowercase to be XHTML compliant (thanks to nuxygen and Joseph) |
---|
159 | - Add showEffectOptions, hideEffectOptions, effectOptions to Window constructor (thanks to Jon) |
---|
160 | - Fix checkbox IE bug (big thanks to JCA) |
---|
161 | - Fix other little bugs (thanks to nuxygen, Dennis, and all who sent me emails) |
---|
162 | - Update samples/index.html |
---|
163 | - Add new sample usng frame (samples/inset.html and samples/inframe.html but use only samples/inset.html) |
---|
164 | |
---|
165 | - 03/27/06 V 0.51 |
---|
166 | - New CSS theme structure |
---|
167 | - Add url: constructor parameter to have a window with an URL content |
---|
168 | - Add bottom/right constructor parameters |
---|
169 | - Update sample files. |
---|
170 | |
---|
171 | - 03/24/06 V 0.50 Initial revision |
---|
172 | |
---|
173 | |
---|
174 | == License |
---|
175 | |
---|
176 | it is licensed under the terms of the MIT License, see the included MIT-LICENSE file. |
---|
177 | |
---|
178 | == Thanks |
---|
179 | To all of you who sent me bugs, patches and feature requests |
---|
180 | |
---|
181 | http://www.ciudadmovil.com.co/q/mod/mapa/conexion.php |
---|
182 | http://www.desyr.net/ |
---|