<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Thanks Johan, I appreciate it.<div><br></div><div>It is partially a learning exercise ;)</div><div><br></div><div>In truth I could just do some string concatenation... I just need to set a bunch of things up front.</div><div><br></div><div>RS<br><br><div>> Subject: Re: [Seaside] Subclassing JSObject<br>> From: johan@inceptive.be<br>> Date: Thu, 23 Jun 2011 14:46:55 +0200<br>> To: seaside@lists.squeakfoundation.org<br>> <br>> Hi Robert,<br>> <br>> The obligatory first question: Do you really need to write it using Seaside's JSObjects?<br>> In other words: is there a reason not to use a plain javascript string or even an external javascript file?<br>> <br>> But here are the samples you requested. <br>> I would never write them like that unless you want to integrate such statements in seaside-generated javascript.<br>> <br>> (JSStream on: 'x') assign: ((JSStream on: 'MyClass') apply: #())<br>> <br>> (JSStream on: 'x') call: 'setVar' withArguments: (Array with:'blah')<br>> <br>> ((JSStream on: 'x') call: 'update') timeout: 100<br>> <br>> Hope it helps!<br>> Johan<br>> <br>> On 23 Jun 2011, at 05:18, Robert Sirois wrote:<br>> <br>> > 'ello. I'd like to use the Seaside javascript facilities to instantiate a javascript class of mine.<br>> > <br>> > What I'd like is an example or something, because looking at the Seaside code and the jQuery classes and stuff is rather confusing.<br>> > <br>> > My class is simple, however. Basically, all I need is to instantiate a variable:<br>> > <br>> >         x = MyClass();<br>> > <br>> > and evaluate some setters:<br>> > <br>> >         x.setVar('blah');<br>> > <br>> > and then evaluate x.update(); on an interval... which JSObject provides.<br>> > <br>> > Thanks,<br>> > RS<br>> > _______________________________________________<br>> > seaside mailing list<br>> > seaside@lists.squeakfoundation.org<br>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>> <br>> _______________________________________________<br>> seaside mailing list<br>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></div></div>                                            </div></body>
</html>