Zuncan Posted December 27, 2005 Share Posted December 27, 2005 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 More sharing options...
matheush Posted December 27, 2005 Share Posted December 27, 2005 try this: <a href="<?php tep_href_link(FILENAME_PCONDITIONS, '', 'SSL')?>" onclick="NewWindow(this.href,'name','650','500','yes');return false">Conditions</a> Link to comment Share on other sites More sharing options...
Zuncan Posted December 28, 2005 Author Share Posted December 28, 2005 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 More sharing options...
matheush Posted December 28, 2005 Share Posted December 28, 2005 <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 More sharing options...
Zuncan Posted December 28, 2005 Author Share Posted December 28, 2005 thx man! worked like a gloooove So what?! Who care in a hundred years anyway? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.