The return of PopupWindow jQuery plugin
March 2, 2007
You can now directly download PopupWindow from the box.net widget —>
DONATE: If you find this plugin useful, consider donating to the jQuery project directly. I personally do not accept donations, I do it all for the community.
UPDATE: For some reason the old file was still being linked. I refixed the bug and uploaded the new file.
UPDATE: Fixed a bug where a syntax error was causing the plugin to crash in IE. Please redownload the new file.
UPDATE: Popupwindow now supports profiles. Please read more information on this here.
UPDATE: Fixed a bug reported by Bruce where “resize” wasn’t a proper parameter. The correct parameter “resizable” can be overloaded using both “resize” or “resizable” to preserve backwards compatibility. The new version breaks this.
UPDATE: version 2.0 is now available.
March 2, 2007 at 10:37 am
[...] 26th, 2006 This post is outdated. The new plugin can be found here. Please updated any bookmarks. Posted by rip747 Filed in [...]
March 18, 2007 at 10:41 pm
umm.. this doesnt work. Might be me but i doubt it. I tried everything. Doesnt look like your in jquery.js
March 20, 2007 at 3:12 pm
@Zeshan
what do you mean?
March 24, 2007 at 12:14 pm
I didn’t have any trouble getting it to work. I wasn’t able to make a resizable window, though — until I changed the parameter in your code from ” resize=” to “resizable=”
Thanks — this will come in handy and likely would have taken me a long time to write myself.
–bruce
March 27, 2007 at 8:58 am
[...] 27th, 2007 PopUpWindow seems to hitting around 70 page views and around 30 downloads a day. Not bad for a plugin I whipped [...]
April 4, 2007 at 2:10 pm
[...] 4th, 2007 Popupwindow has been updated yet [...]
April 10, 2007 at 1:10 pm
[...] 10th, 2007 I just fixed a major bug in PopWindow that was causing IE to bottom out. If you’re using the plugin, you need to download the new [...]
April 30, 2007 at 7:00 am
There is syntax error in ie, dont allow comma after class property list:
settings = {
height:600, // sets the height in pixels of the window.
width:600, // sets the width in pixels of the window.
toolbar:0, // determines whether a toolbar (includes the forward and back buttons) is displayed {1 (YES) or 0 (NO)}.
scrollbars:0, // determines whether scrollbars appear on the window {1 (YES) or 0 (NO)}.
status:0, // whether a status line appears at the bottom of the window {1 (YES) or 0 (NO)}.
resizable:1, // whether the window can be resized {1 (YES) or 0 (NO)}. Can also be overloaded using resizable.
left:0, // left position when the window appears.
top:0,
April 30, 2007 at 10:29 pm
@hannul
that bug was fix on 04/10/2007. Try downloading the file again since I’ve updated it.
May 2, 2007 at 2:05 am
For some reason, in your example, IE 6 & 7 are showing an error at line 27: $(”.popupwindow”).popupwindow(profiles);
Showing an error code of “object doesn’t support this property or method.”
May 14, 2007 at 3:57 pm
I’m getting the same error in ie6 and ie7. Any ideas how to fix it?
May 14, 2007 at 9:37 pm
I’ve refixed the file and reuploaded it. Redownload and tell me if you are still experiencing the problem with IE.
May 14, 2007 at 9:40 pm
[...] Go download popupwindow Posted by rip747 Filed in Uncategorized [...]
May 15, 2007 at 3:36 pm
hey thanks man, that did it! Very cool plugin.
May 15, 2007 at 3:54 pm
Your welcome
Sorry it took me so long to post the fix. Won’t let it happen again.
June 29, 2007 at 8:19 am
How do you activate the plugin with a function rather then with a class as a class=”popupwindow” won’t work with ajax loaded content.
June 29, 2007 at 8:46 am
not sure I understand your question. Do you have a page with sample code that you can point me to?
June 30, 2007 at 9:24 am
I dig the plugin, however may I suggest a center option. ie:
settings = {
…
center:0 // should we center the window? {1 (YES) or 0 (NO)}. overrides top and left
}
then you can overload settings.top and settings.left like so:
if (settings.center == 1) {
settings.top = (screen.height-(settings.height+110))/2;
settings.left = (screen.width-settings.width)/2;
}
tada … a centered popup.
June 30, 2007 at 11:14 am
[...] with CSS and Javascript. I thought that I would leave a comment telling her about jQuery and my PopupWindow plugin. Why reinvent the wheel if you don’t have to and maybe she would become a jQuery convert [...]
June 30, 2007 at 11:17 am
@blue0x
Thanks very much for the suggestion and I will definitely look into implementing this real soon.
July 26, 2007 at 9:34 am
How about an online demo… none ere and none on te referred site.
July 26, 2007 at 5:40 pm
@Freddy
If you download the plugin there is an index.html file that has the demo in it. I don’t have a website to post it to, so that’s the best I can do for now.
August 20, 2007 at 11:42 pm
Hi, thanks for this nice script.
I think I have found a bug that only the first popup link does not work when placed within the popup window.
been fixed already?
September 4, 2007 at 1:10 pm
Hi,
I’ve downloaded your script and modified the default settings to include the other Window Attributes: location, directories, menubar, and copyhistory. See the code at: http://pastie.caboo.se/93847
September 24, 2007 at 4:49 pm
I second the request for a demo…. You may be pleased with your page hit rate, but that doesnt tell you which (hits/readers) go beyond reading about your plugin and then moving on (because there is no demo).
There are a great many plugins for interested surfers to evaluate… and its very time consuming testing each one for suitability when there is no online demo.
September 25, 2007 at 9:15 am
Please people, for the love of John; I don’t have a website where I can put up an online demo. When I get a website, I will put one up.
In the mean time though, you can download the plugin and there is a local demo within the plugin that you can run. I can’t tell you how many times I’ve mentioned this.
November 1, 2007 at 9:34 am
[...] why do I feel so honored? Well there is actually a custom tag that was created out of my PopWindow Plugin! Posted by rip747 Filed in ColdFusion, Jquery, [...]
November 12, 2007 at 6:53 am
Nice plugin, just what I needed. Thanks!
March 23, 2008 at 3:52 pm
Hi,
I can’t seem to find a license anywhere? Is it GPL?
March 23, 2008 at 6:22 pm
all of the software that I write is open source. Forget licenses, you can do with it what you want. Download, modify, call it your own, etc.
Have fun.