Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Resize popupwindow for conditions.


Zuncan

Recommended Posts

Hi!

 

Im trying to do a popupwindow that contains my conditions. Everything is working great if I use this code:

 

<? echo '<a href="' . tep_href_link(FILENAME_POPUPCONDITIONS, '', 'SSL') . '" TARGET="_BLANK">Conditions</a>'; ?>

 

But I want to disable the adressfield and adjust the size of the popupwindow.

 

I tried this code, but it just shows a errormessage:

 

<? echo '<a href="' . tep_href_link(FILENAME_POPUPCONDITIONS, '', 'SSL') . '" onclick="NewWindow(this.href,'name','650','500','yes');return false">Conditions</a>'; ?>

 

Can someone pls help me out?

 

/Zuncan

So what?! Who care in a hundred years anyway?

Link to comment
Share on other sites

Thx! It almost worked..

The popupwindows shows up exact as I want to, BUT it only shows the first page (index.php). Ive tried to show differnt pages, but only to get the same result. What could be wrong with the code?

 

<a href="<?php tep_href_link(FILENAME_CONDITIONS, '', 'SSL')?>" onclick="NewWindow(this.href,'name','650','500','yes');return false">Conditions</a>

So what?! Who care in a hundred years anyway?

Link to comment
Share on other sites

<script language="javascript"><!--

function popupWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re

sizable=yes,copyhistory=no,width=650,height=500,screenX=150,screenY=150,top=150,l

eft=150')

}

//--></script>

 

<?php echo '<a href="java script:popupWindow(\'' . tep_href_link(FILENAME_PCONDITIONS, '', 'SSL') . '\')">' . Conditions . '</a>'; ?>

 

it has to work B)

 

greatting

Mateusz z Polski

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...