iv_popup (inline)Popup

Introduction / License

To prevent any frustration, it's recommend to read the full documentation before start using iv_popup.

Without any special reason I was looking for an alternate to open a popup.
I was playing around with iframes and finally I wrote this small script.
You can choose by entering the same syntax and 1 optional, different parameter, if your call will open in a new window or an iframe.

iv_popup - (inline)Popup
Copyright (C) 2007 Ingo Volkmann
Visit my site and get in contact with me at godiv.de

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

Installation

The installation is very simple.
Copy the iv_popup.js file to your webserver.
Put <script type="text/javascript" language="javascript" src="iv_popup.js"></script> between the <head></head> tags of your page.
Don't forget to adjust the 'src' attribute if the iv_popup.js file is not located in the same directory as your page.

Usage

General
Δ Top

all functions are prefixed by iv_ to prevent any collisions with your own scripts
the parameters are self explanatory except 'ret' and 'frame' I guess
'ret' means the returned value after the popup was opened
'frame' means to open the file in a new window or an iframe - valid syntax is 'true' for an iframe or 'false' for a new window
by choosing the iframe variant, a new variable will be generated inside the function, the id of the iframe
this will be the given name with replaced special characters (special chars are all chars except 0-9 and a-z) by a _ (underscore)
new windows can get closed by windowName.close();
iframes can get closed by iv_close(id);

var path = 'http://godiv.de';
var name = 'My Popup Window';
var width = 500;
var height = 350;
var scrollbars = 'yes';
var ret = false;
var frame = true;
iv_popup(path, name, width, height, scrollbars, ret, frame);

ToDo

- nothing at present

iv_popup - (inline)Popup © 2007 Ingo Volkmann