<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De:</B> seaside-bounces@lists.squeakfoundation.org
[mailto:seaside-bounces@lists.squeakfoundation.org] <B>En nombre de </B>Sylvain
Pralon<BR><B>Enviado el:</B> Viernes, 30 de Noviembre de 2007
16:50<BR><B>Para:</B> Seaside - general discussion<BR><B>Asunto:</B> [Seaside]
URL Manipulation<BR></FONT><BR></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV>Hi, <BR><BR>I am currently wondering how can I manipulate urls generated
by Seaside.<BR>In my application I have several components which can be
displayed in the main interface.<BR>In some of them I create some anchors.
<BR>First I want to konw how can I add some parameters in this url
?<BR>Second, when the link is clicked, how can browse the parameters in my
current url in order <BR>to take some decisions depending on their values
?<BR><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2></FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2>Why you could possibly want to do that if you don't have a real
need to send (away from the server) nor bring the parameters at
all?</FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2>The desicions can (should?) be made in the objects of your
model. That way you make thos anchors to be rendered or not depending on model
state (if that is what you want).</FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125080121-30112007> </SPAN><BR>For example, imagine a
"cloud tag" where each tag is an anchor which should recall another component
which could be a kind of research component.<BR><SPAN
class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2></FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2>Any anchor can call any component that the rendered </FONT><FONT
face="Trebuchet MS" color=#0000ff size=2>component can reach. Take a
look:</FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2>MainPage</FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007> <FONT
face="Trebuchet MS"><FONT color=#0000ff size=2>first := FirstComponent
new.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007> <FONT
face="Trebuchet MS"><FONT color=#0000ff size=2>second := SecondComponent
new.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125080121-30112007></SPAN><SPAN
class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff size=2>
MainPage>>renderContentOn: html</FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2> </FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007> <FONT
face="Trebuchet MS" color=#0000ff size=2>html anchor</FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007>
<FONT face="Trebuchet MS" color=#0000ff size=2>callback: [self call:
first];</FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007>
<FONT face="Trebuchet MS" color=#0000ff size=2>with:
'first'.</FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2>
<DIV><SPAN class=125080121-30112007></SPAN> </DIV>
<DIV><SPAN class=125080121-30112007> <FONT
face="Trebuchet MS" color=#0000ff size=2>html anchor</FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007>
<FONT face="Trebuchet MS" color=#0000ff size=2>callback: [self call:
second];</FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007>
<FONT face="Trebuchet MS" color=#0000ff size=2>with:
'first'.</FONT></SPAN></DIV></FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007> </SPAN><BR>From the Seaside FAQ, I
read some stuffs about that. It seems that this parameters is stored in the
session variable but I have to recognize that I need some more
explanations... <BR><SPAN class=125080121-30112007><FONT
face="Trebuchet MS" color=#0000ff size=2> </FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2>The main explanation I think you must deal with *at this stage* is to
implode the paradigm of using the url to send and receive things and/or states
of things. Let that creepy design for the past and enjoy the Seaside. Widgets
details, styling and rendering aside, if you start feeling that deveop with
Seaside has a lot in common with desktop development you will be in the right
path.</FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2>cheers,</FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=125080121-30112007><FONT face="Trebuchet MS" color=#0000ff
size=2>Sebastian</FONT></SPAN></DIV>
<DIV><SPAN class=125080121-30112007> </SPAN><BR>Thanks in
advance.<BR><BR>Sylvain <BR><BR><BR></DIV></BLOCKQUOTE></BODY></HTML>