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...]
}
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
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
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).
[...] features. PopupWindow lets you create javascript popup windows for static links on your web site.http://rip747.wordpress.com/2008/01/22/popupwindow-v200-now-available/MRQE – Movie Review Query Engine – REAR WINDOWWeb’s largest online directory of movie [...]
I’m trying to get popupwindow to work inside of tabs I call with ajax using the jquery ui tabs script. I’ve been told to use the livequery plugin and that will rebind the popupwindow jquery onto any content loaded with ajax. This is what I’ve come up with but it doesn’t work.
$(”.popupwindow”)
.livequery(”click”, function() {
var name = settings.createnew ? “PopUpWindow” + index : “PopUpWindow”;
window.open(this.href, name, parameters).focus();
return false;});
Thanks for the e-mail you sent, it worked. However, it wasn’t working for links with profiles. The following works for both profile links and links using the default settings. Thanks again.
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();
July 27, 2008 at 9:24 am
[...] features. PopupWindow lets you create javascript popup windows for static links on your web site.http://rip747.wordpress.com/2008/01/22/popupwindow-v200-now-available/MRQE – Movie Review Query Engine – REAR WINDOWWeb’s largest online directory of movie [...]
August 29, 2008 at 9:44 am
I’m trying to get popupwindow to work inside of tabs I call with ajax using the jquery ui tabs script. I’ve been told to use the livequery plugin and that will rebind the popupwindow jquery onto any content loaded with ajax. This is what I’ve come up with but it doesn’t work.
$(”.popupwindow”)
.livequery(”click”, function() {
var name = settings.createnew ? “PopUpWindow” + index : “PopUpWindow”;
window.open(this.href, name, parameters).focus();
return false;});
August 29, 2008 at 10:07 pm
Thanks for the e-mail you sent, it worked. However, it wasn’t working for links with profiles. The following works for both profile links and links using the default settings. Thanks again.
$(”.popupwindow”).livequery(function(){
$(this).popupwindow(profiles);
});
November 21, 2008 at 5:26 am
What is the license on this code?
November 21, 2008 at 10:26 pm
All the code that I produce is open sourced. Do with it what you want.