PopupWindow v2.0.0 now available
January 22, 2008
It’s been awhile but now PopupWindow version 2.0 has been released. Here is what changed:
cleaned up the index.html example page.
added the ability to have the popups open in the same window. request by Cameron
fixed a major bug where the settings variables wasn’t vared.
Go get it from the box.net widget —>
January 22, 2008 at 11:50 am
[...] PopupWindow v2.0.0 now available [...]
February 13, 2008 at 4:13 pm
Still need to add in location:0 and menubar:0 because some people like to be able to copy the url (location) and use the menu to print (menubar).
Here I’ve done it for you…
settings = {
location:0, // determines whether the address bar is displayed {1 (YES) or 0 (NO)}.
menubar:0, // determines whether the menu bar is displayed {1 (YES) or 0 (NO)}.
[...your current code here...]
}
and
parameters = “location=” + settings.location + “menubar=” + settings.menubar + “,height=” + settings.height + “,width=” + settings.width + “,toolbar=” + settings.toolbar + “,scrollbars=” + settings.scrollbars + “,status=” + settings.status + “,resizable=” + settings.resizable + “,left=” + settings.left + “,screenX=” + settings.left + “,top=” + settings.top + “,screenY=” + settings.top;
February 15, 2008 at 2:09 pm
I don’t know if it’s a bug or it’s just me but I can’t control the “height” parameter. The popup take the whole height of the page in all browsers mac and pc i tested
February 20, 2008 at 6:59 am
I don’t know if it’s a bug or it’s just me but I can’t control the “height” parameter. The popup take the whole height of the page in all browsers mac and pc i tested
The same to me…
February 20, 2008 at 7:03 am
Ok, I think it’s very simple (I think!! I’m not a good programmer… :-()
I believe you have forgotten two commas in this line:
parameters = “location=” + settings.location + “menubar=” + settings.menubar + “height=” + settings.height + “,width=” + settings.width + “,toolbar=” + settings.toolbar + “,scrollbars=” + settings.scrollbars + “,status=” + settings.status + “,resizable=” + settings.resizable + “,left=” + settings.left + “,screenX=” + settings.left + “,top=” + settings.top + “,screenY=” + settings.top;
February 20, 2008 at 7:04 am
Change with:
parameters = “location=” + settings.location + “,menubar=” + settings.menubar + “,height=” + settings.height + “,width=” + settings.width + “,toolbar=” + settings.toolbar + “,scrollbars=” + settings.scrollbars + “,status=” + settings.status + “,resizable=” + settings.resizable + “,left=” + settings.left + “,screenX=” + settings.left + “,top=” + settings.top + “,screenY=” + settings.top;
February 20, 2008 at 10:46 am
thanks for the heads up everyone. the bug has been fixed. you can download the new version from the box.net widget
April 1, 2008 at 1:13 pm
Nice plugin. Exactly what I needed.
Question:
How can I activate the popupwindow with a class other than “.popupwindow” ? Simply changing the name doesn’t work as this causes an Error in IE ($ is not defined).
April 2, 2008 at 7:29 pm
@stefanL
I think you’re getting the plugin and the selector confused. to apply popupwindow, you need to append it to a selector like so
$(’.mywindows’).popupwindow();
or
$(’#newwindow’).popupwindow();