Re: [SMARTY] overlib template

From: Date: Thu, 01 Apr 2004 17:31:54 +0000
Subject: Re: [SMARTY] overlib template
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11200@lists.php.net to get a copy of this message
As long as everything renders correctly in the javascript window. I'll bet there are browser issues with this too. On Thu, 2004-04-01 at 11:28, messju mohr wrote: > On Thu, Apr 01, 2004 at 06:11:40PM +0100, pete M wrote: > > Have tries the following code... > > > > {include file="pop_stat.inc.html" assign="pop"} > > <A href="#" {popup sticky=true caption="mypage contents" > > text="$pop" snapx=10 snapy=10}>mypage</A> > > > > but the html is all garbles with \r etc > > > > <a href="#" onmouseover="return overlib('<!DOCTYPE HTML PUBLIC > > "-//W3C//DTD HTML 4.01 > > Transitional//EN>\r\r<html>\r\r<head>\r\r<title>Untitled > > Document</title>\r\r<meta http-equiv="Content-Type" > > content="text/html; > > charset=iso-8859-1">\r\r</head>\r\r\r\r<body>\r\r<table > > width="100%" > > border="0" cellspacing="0" cellpadding="2">\r\r > > <tr>\r\r <td>Set > > Status</td>\r\r <td>&nbsp;</td>\r\r > > <td>&nbsp;</td>\r\r > > > > I've tried text="$pop|escape:html" and escape|javascript. > > > > is there a way around that ? > > I think this is a bug in the popup-plugin. what would be the correct > way to escape this? i guess running htmlspecialchars, so that it > becomes like: > > &lt;a href=&quot;#&quot; onmouseover=&quot;return > overlib('&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 > > Transitional//EN&gt;\r\r&lt;html&gt;\r\r&lt;head&gt;\r\r&lt;title&gt;Untitled > Document&lt;/title&gt;\r\r&lt;meta http-equiv=&quot;Content-Type&quot; > content=&quot;text/html; > > charset=iso-8859-1&quot;&gt;\r\r&lt;/head&gt;\r\r\r\r&lt;body&gt;\r\r&lt;table > width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; > cellpadding=&quot;2&quot;&gt;\r\r &lt;tr&gt;\r\r &lt;td&gt;Set > Status&lt;/td&gt;\r\r &lt;td&gt;&nbsp;&lt;/td&gt;\r\r > &lt;td&gt;&nbsp;&lt;/td&gt;\r\r > > would that be working out? > > > tia > > pete > > > > Monte Ohrt wrote: > > > > >On Thu, 2004-04-01 at 10:35, pete M wrote: > > > > > >>hi all > > >>It is possible to include a template contents into the opverlib popup > > >> > > >>don't quite know how to explain, but I want to use {popup} to show a set > > >>of links to navigate, however I don't really want to put all that code > > >>into the text attrib > > >> > > >>eg > > >><A href="mypage.html" {popup sticky=true caption="mypage > > >>contents" > > > > >>>>text="<long><html><line>................{$with_vars}</html" > > >>snapx=10 snapy=10}>mypage</A> > > >> > > >>suppose what I really want is > > >>text="{include file="popup_template.inc.tpl}" > > > > > > > > >This should get the text to the attribute: > > > > > >{include file="popup_template.inc.tpl" assign="content"} > > >{popup ... text=$content} > > > > -- > > Smarty General Mailing List (http://smarty.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#11200) next »