[Zope] about links
Paul Zwarts
paz@oratrix.com
Fri, 15 Jun 2001 17:09:41 +0200
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01C0F5BD.F7D6AFC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Greetings,
Pretty easy but a bit of work with nested <dtml-in>. You can use <dtml-if
sequence-even>class="dark"</dtml-if> in the TR to shade the cells as well...
Have fun!
<table>
<dtml-in methodone>
<tr>
<td><a href="page?linkone=&dtml-linkone"><dtml-var linkone></a></td>
</tr>
<dtml-if "REQUEST.has_key('linkone')">
<dtml-in "methodtwo(linkone=linkone)">
<tr>
<td><dtml-var resultsoftwo></td>
</tr>
</dtml-in>
</dtml-if>
</dtml-in>
</table>
Paz
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
Brigitte Chan
Sent: Friday, June 15, 2001 4:55 PM
To: zope@zope.org
Subject: [Zope] about links
hi,
i'm trying to write code that will display content once a link on the same
page is clicked. so for example, there are two rows in a table. there's a
link on the first row. once the link is being clicked, the second row will
display the content which is related to that link. can someone help me out
with that?
thanks,
phat-phish
----------------------------------------------------------------------------
--
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________ Zope maillist -
Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts
or HTML encoding! ** (Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
------=_NextPart_000_0000_01C0F5BD.F7D6AFC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2462.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2>Greetings,</FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2>Pretty=20
easy but a bit of work with nested <dtml-in>. You can use =
<dtml-if=20
sequence-even>class=3D"dark"</dtml-if> in the TR to shade the =
cells as=20
well... Have fun!</FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN><SPAN class=3D817030315-15062001><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2><table></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2><dtml-in methodone></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2> <tr></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2> <td><a=20
href=3D"page?linkone=3D&dtml-linkone"><dtml-var=20
linkone></a></td></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2> =20
</tr></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2> =20
<dtml-if "REQUEST.has_key('linkone')"></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2> <dtml-in=20
"methodtwo(linkone=3Dlinkone)"></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2> <tr></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2> =
<td><dtml-var=20
resultsoftwo></td></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2> =
</tr></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2> </dtml-in></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2> =20
</dtml-if></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2></dtml-in></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2><SPAN=20
class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff=20
size=3D2></table></FONT></SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN class=3D817030315-15062001><FONT face=3DArial color=3D#0000ff =
size=3D2>Paz</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
size=3D2>-----Original Message-----<BR><B>From:</B> =
zope-admin@zope.org=20
[mailto:zope-admin@zope.org]<B>On Behalf Of </B>Brigitte =
Chan<BR><B>Sent:</B>=20
Friday, June 15, 2001 4:55 PM<BR><B>To:</B> =
zope@zope.org<BR><B>Subject:</B>=20
[Zope] about links<BR><BR></FONT></DIV>
<DIV>hi, </DIV>
<DIV>i'm trying to write code that will display content once a link on =
the=20
same page is clicked. so for example, there are two rows in a=20
table. there's a link on the first row. once the link is =
being=20
clicked, the second row will display the content which is related to =
that=20
link. can someone help me out with that? </DIV>
<DIV> </DIV>
<DIV>thanks, </DIV>
<DIV> </DIV>
<DIV>phat-phish</DIV><BR clear=3Dall>
<HR>
Get your FREE download of MSN Explorer at <A=20
href=3D"http://explorer.msn.com">http://explorer.msn.com</A><BR>
<P></P>_______________________________________________ Zope maillist - =
Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross =
posts or=20
HTML encoding! ** (Related lists -=20
http://lists.zope.org/mailman/listinfo/zope-announce=20
http://lists.zope.org/mailman/listinfo/zope-dev ) =
</BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0000_01C0F5BD.F7D6AFC0--