Plugins: fleegix.plugin
Provides a simple API for invoking pop-up windows. Keeps the amount of UI clutter to a minimum by enforcing a one-window limit.
Download fleegix.popup (1.7KB)
fleegix.popup.open
Syntax
fleegix.popup.open(url, [popupOptions]);
Parameters
url (String) -- URL for the location of the popup window
popupOptions (Object) -- Options for the window to be opened. Here is the list of possible properties to set, and the default values if they are not set:
- width: null -- Width of the window to open. If unset, the window is a full-sized window
- height: null -- Height of the window to open. If unset, the window is a full-sized window
- location: false -- Display the location bar or not
- menubar: false -- Display a menubar or not
- resizable: true -- Make the window resizable or not
- scrollbars: false -- Include scrollbars or not
- status: false -- Add a statusbar at the bottom or not
- titlebar: true -- Add a titlebar at the top or not
- toolbar: false -- Include a toolbar at the top or not
Description
Opens a popup window with the desired set of options. If no options are passed, it simply opens a normal new browser window.
This implementation allows only a single popup window at a time, to keep things simple for end-users. Calling the open method again will simply open the new URL in the same window.
Examples
fleegix.popup.open('/search_window.rbx',
{ width: 480, height: 300 });
fleegix.popup.close
Syntax
fleegix.popup.close();
Parameters
(None)
Description
Closes the popup window opened with fleegix.popup.open.
Examples
fleegix.popup.open('/search_window.rbx',
{ width: 480, height: 300 });
fleegix.popup.close();