IPB

Welcome Guest ( Log In )

 
Reply to this topicStart new topic
> Email A Friend, Window Size
agkits
post Jul 25 2008, 10:24 AM
Post #1





Group: Verified NS Member
Posts: 167
Joined: 26-October 07
From: Syracuse NY
Member No.: 193



Trying to get adjust window size for the popup for the email a friend.

Here is what I have... but it doesn't seem to work.
CODE
<a href="" onClick="Window.open('<%Product.EmailAFriendUrl%>', 'scrollbars=no,width=300px,height=300px');return false;"><img src="/images/emailbutton.gif" border="0"></a>
Go to the top of the page
 
+Quote Post
AndyT - MC
post Jul 25 2008, 12:17 PM
Post #2





Group: Administrators
Posts: 575
Joined: 22-October 07
From: St. Louis, MO
Member No.: 170



The upper case "Window.open" is a helper function of ours, it has this structure:

Window.open(url, name, width, height, scrollbars, resizable)

so your call need not specify "scrollbars", "width" and "height", use this instead:

CODE
Window.open('<%Product.EmailAFriendUrl%>', 'EmailAFriend',300,300,0,1)

(300x300, no scrollbars, resizable)
Go to the top of the page
 
+Quote Post
agkits
post Jul 25 2008, 01:13 PM
Post #3





Group: Verified NS Member
Posts: 167
Joined: 26-October 07
From: Syracuse NY
Member No.: 193



Thanks Andy that did the trick.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version    Network Solutions © 2008 Time is now: 2nd December 2008 - 03:32 PM
Domain Names | Web Hosting | Web Design | Shopping Cart Software | Online Marketing | SSL Certificates