View Single Post
  #3  
Old 04-17-2003, 09:40 PM
 
rohit rohit is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 36
 

Default RE : How to call a file to pop-up window?

Hello Boomer,

Sorry! that didn't work. I did exactly as you said. I replaced my script to yours. I created a file sample.html in customer folder. No results.

Check it out at http://www.templatearena.com/xcart/customer . Look for link "Click" at the top of right vertical bar above cart heading.

Heres the code in customer/home.tpl . I have bolded the required lines.

----------------------------------------------------------------------------------

{* $Id: home.tpl,v 1.42 2002/10/22 10:27:05 olga Exp $ *}
{ config_load file="$skin_config" }
<html>
<head>
<title>----Welcome to TemplateArena------------------------------------------------------------------------
</title>
{literal}
<script language="Javascript" type="text/javascript">
<!--
function mypopup(mydoc) {

window.open(mydoc, '_mywindow', 'HEIGHT=400,resizable=no,WIDTH=550');

}
//-->
</script>
{/literal}

{ include file="meta.tpl" }
<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">
</head>
<body LEFTMARGIN=0 TOPMARGIN=0 RIGHTMARGIN=0 BOTTOMMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
{ include file="customer/head.tpl" }

{ include file="customer/search1.tpl" }


<table width="747" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="150" height="18" valign="top" bgcolor="#8DAED2">{ include file="customer/categories.tpl" }
{ include file="help.tpl" }</td>


<td width="447" height="36" rowspan="2" valign="top">
{ include file="customer/home_main.tpl" }</td>


<td width="150" valign="top" bgcolor="#8DAED2">

<font size=2> Click</font>{ include file="customer/menu_cart.tpl" }
{if $login eq "" }
{ include file="auth.tpl" }
{else}
{ include file="authbox.tpl" }
{/if}
{ include file="news.tpl" }
</td>
</tr>
<tr>
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"}
<td width="150" height="18>{ include file="modules/Bestsellers/menu_bestsellers.tpl" }</td>{/if}
<td width="150"></td>
</tr>
</table>

</body>
</html>
--------------------------------------------------------------------

Looking forward for the solution.

Best Regards
__________________
Rohit Sharma
Reply With Quote