Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Need a window to open with specific size...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-28-2005, 10:19 AM
 
marian marian is offline
 

Senior Member
  
Join Date: Mar 2005
Posts: 103
 

Default Need a window to open with specific size...

I have a size chart that is a gif image 500 x 497

I have a link in the apparel categories that opens sizechart.htm and would like to have the sizechart.htm be the same size as the image sizechart.gif and maybe even position it centered on the users screen.

The problem I have been having is that the document or page that has the link is passing size and popup window options to the page to be opened. There is JS code that has to be put in the Head part of the initiating page and I can't do that in the "description" field of the category.

I have looked around and any resize code is always in JS. Is there a way to have a regular link (for example: Click here for Size Chart) open a window that is a specified size?
__________________
Xcart Gold 4.0.13
OS: Linux
Apache version: 1.3.33 (Unix)
PHP version: 4.3.11
MySQL version: 4.0.22-standard
Reply With Quote
  #2  
Old 07-28-2005, 10:23 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Yep, just use this:


Change the width and height and settings for toolbars, scrollbars, etc as required.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-28-2005, 10:30 AM
 
marian marian is offline
 

Senior Member
  
Join Date: Mar 2005
Posts: 103
 

Default Well, Bless You, Bless You

Thanks Balinor!!

This works in Firefox and IE6. I was trying not to bother anybody here with something I should already know. But I spent over an hour scouring the HTML "help" places I found in google, but none of them had your solution.

Thank you so much! This is exactly the solution I needed!
__________________
Xcart Gold 4.0.13
OS: Linux
Apache version: 1.3.33 (Unix)
PHP version: 4.3.11
MySQL version: 4.0.22-standard
Reply With Quote
  #4  
Old 07-20-2006, 09:25 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

Excellent post, I was looking for this code everywhere!
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #5  
Old 05-29-2009, 08:49 AM
 
TToshi TToshi is offline
 

Member
  
Join Date: Oct 2007
Location: Los Angeles
Posts: 11
 

Default Re: Need a window to open with specific size...

How can I read this code?
I can't open that link.
__________________
Satomi

X-Cart Gold 4.1.9
Reply With Quote
  #6  
Old 05-31-2009, 08:09 PM
 
dyno-guy dyno-guy is offline
 

Newbie
  
Join Date: May 2009
Posts: 1
 

Default Re: Need a window to open with specific size...

Hello,

I would like to access this code aswell. Can you please update the post so we can see it?

Cheers
__________________
X-Cart 4.1.12
CDSEO Pro
XNews
Xnews SEO URL
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:11 AM.

   

 
X-Cart forums © 2001-2020