<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hmm... I'll have to think about that when I get back to this after work. I'm pretty much throwing myself into this and going with what works. I really need to sit down and read and understand what it is that's going on behind all these different methods and whatnot, but I am finding it hard to read through some of this code for some reason. The comments and stuff help sometimes... I guess I am just more of a hands-on learner :)<br><br>Thanks for the help!<br>RS<br><br>> Date: Mon, 20 Jul 2009 09:14:20 -0700<br>> Subject: Re: [Seaside] jQuery html replace<br>> From: jfitzell@gmail.com<br>> To: seaside@lists.squeakfoundation.org<br>> <br>> Erm... not sure what you mean.<br>> <br>> The rendering block needs to be invokable later, long after the page<br>> has been rendered and the original canvas (in the method parameter<br>> 'html') has been cleaned up. In order to make this work, the rendering<br>> block gets passed a new canvas each time it is invoked (via the block<br>> parameter 'r'). So you need to make sure that you only use the new<br>> renderer and not the old renderer from within that block (not that the<br>> Slime package provides Lint tests that will catch this for you).<br>> <br>> Also, remember that the #render: method expects a "renderable" object.<br>> This could be a Component, a Block, or any number of other things. I<br>> assume your #renderResultsOn: method was returning self and that was<br>> causing the whole Component to be rendered again each time the block<br>> was called.<br>> <br>> Julian<br>> <br>> On Mon, Jul 20, 2009 at 9:01 AM, Robert Sirois<watchlala@hotmail.com> wrote:<br>> > Heh that worked perfectly :p So, 'html' is what is bein passed into that<br>> > block?<br>> ><br>> > RS<br>> ><br>> >> Date: Mon, 20 Jul 2009 08:12:05 -0700<br>> >> Subject: Re: [Seaside] jQuery html replace<br>> >> From: jfitzell@gmail.com<br>> >> To: seaside@lists.squeakfoundation.org<br>> >><br>> >> I may be misunderstanding your problem but shouldn't that be:<br>> >><br>> >> (html jQuery: '#display') html: [:r | self renderResultsOn: r]<br>> >><br>> >> ?<br>> >><br>> >> It looks pretty weird to me that you are trying to render the return<br>> >> value of a rendering method...<br>> >><br>> >> Julian<br>> >><br>> >> On Sun, Jul 19, 2009 at 7:57 PM, Robert Sirois<watchlala@hotmail.com><br>> >> wrote:<br>> >> > I wish there was an easy way to show this, but I'll try to describe it<br>> >> > well...<br>> >> ><br>> >> > I'm using this statement...<br>> >> ><br>> >> > (html jQuery: '#display') html: [:r | r render: (self renderResultsOn:<br>> >> > html)].<br>> >> ><br>> >> > ... in order to render the results of a survey. On the page I have a<br>> >> > simple<br>> >> > select menu and a button that let's you pick between the available<br>> >> > surveys.<br>> >> > What is happening is the page is being loaded fine, I can select the<br>> >> > survey<br>> >> > fine, hit the button, the results display fine, but then the original<br>> >> > div<br>> >> > with the dropdown and button is also added to the bottom of the #display<br>> >> > div<br>> >> > (see above). The display div is simply:<br>> >> ><br>> >> > html div<br>> >> > id: 'display'.<br>> >> ><br>> >> > I've tried taking the div out of the #with: statement where the select<br>> >> > box<br>> >> > and button are also in, but that does not seem to help. There are a<br>> >> > couple<br>> >> > other places I have been using the jQuery replace code, and it appears<br>> >> > to be<br>> >> > working correctly in those instances.<br>> >> ><br>> >> > Thanks,<br>> >> > RS<br>> >> ><br>> >> > ________________________________<br>> >> > Windows Live™ SkyDrive™: Store, access, and share your photos. See how.<br>> >> > _______________________________________________<br>> >> > seaside mailing list<br>> >> > seaside@lists.squeakfoundation.org<br>> >> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>> >> ><br>> >> ><br>> >> _______________________________________________<br>> >> seaside mailing list<br>> >> seaside@lists.squeakfoundation.org<br>> >> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>> ><br>> > ________________________________<br>> > Windows Live™ Hotmail®: Search, add, and share the web’s latest sports<br>> > videos. Check it out.<br>> > _______________________________________________<br>> > seaside mailing list<br>> > seaside@lists.squeakfoundation.org<br>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>> ><br>> ><br>> _______________________________________________<br>> seaside mailing list<br>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br><br /><hr />Bing™ brings you maps, menus, and reviews organized in one place. <a href='http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TXT_MLOGEN_Local_Local_Restaurants_1x1' target='_new'>Try it now.</a></body>
</html>