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  —>

9 Responses to “PopupWindow v2.0.0 now available”

  1. The return of PopupWindow jQuery plugin « Rip’s Domain Says:

    [...] PopupWindow v2.0.0 now available [...]

  2. Matthew Says:

    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;

  3. Daniele Says:

    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 :-(

  4. daweb Says:

    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…

  5. daweb Says:

    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;

  6. daweb Says:

    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;

  7. rip747 Says:

    thanks for the heads up everyone. the bug has been fixed. you can download the new version from the box.net widget

  8. StefanL Says:

    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).

  9. rip747 Says:

    @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();

Leave a Reply