<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>&gt; Date: Mon, 20 Jul 2009 09:14:20 -0700<br>&gt; Subject: Re: [Seaside] jQuery html replace<br>&gt; From: jfitzell@gmail.com<br>&gt; To: seaside@lists.squeakfoundation.org<br>&gt; <br>&gt; Erm... not sure what you mean.<br>&gt; <br>&gt; The rendering block needs to be invokable later, long after the page<br>&gt; has been rendered and the original canvas (in the method parameter<br>&gt; 'html') has been cleaned up. In order to make this work, the rendering<br>&gt; block gets passed a new canvas each time it is invoked (via the block<br>&gt; parameter 'r'). So you need to make sure that you only use the new<br>&gt; renderer and not the old renderer from within that block (not that the<br>&gt; Slime package provides Lint tests that will catch this for you).<br>&gt; <br>&gt; Also, remember that the #render: method expects a "renderable" object.<br>&gt; This could be a Component, a Block, or any number of other things. I<br>&gt; assume your #renderResultsOn: method was returning self and that was<br>&gt; causing the whole Component to be rendered again each time the block<br>&gt; was called.<br>&gt; <br>&gt; Julian<br>&gt; <br>&gt; On Mon, Jul 20, 2009 at 9:01 AM, Robert Sirois&lt;watchlala@hotmail.com&gt; wrote:<br>&gt; &gt; Heh that worked perfectly :p So, 'html' is what is bein passed into that<br>&gt; &gt; block?<br>&gt; &gt;<br>&gt; &gt; RS<br>&gt; &gt;<br>&gt; &gt;&gt; Date: Mon, 20 Jul 2009 08:12:05 -0700<br>&gt; &gt;&gt; Subject: Re: [Seaside] jQuery html replace<br>&gt; &gt;&gt; From: jfitzell@gmail.com<br>&gt; &gt;&gt; To: seaside@lists.squeakfoundation.org<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I may be misunderstanding your problem but shouldn't that be:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; (html jQuery: '#display') html: [:r | self renderResultsOn: r]<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; ?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; It looks pretty weird to me that you are trying to render the return<br>&gt; &gt;&gt; value of a rendering method...<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Julian<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; On Sun, Jul 19, 2009 at 7:57 PM, Robert Sirois&lt;watchlala@hotmail.com&gt;<br>&gt; &gt;&gt; wrote:<br>&gt; &gt;&gt; &gt; I wish there was an easy way to show this, but I'll try to describe it<br>&gt; &gt;&gt; &gt; well...<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; I'm using this statement...<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; (html jQuery: '#display') html: [:r | r render: (self renderResultsOn:<br>&gt; &gt;&gt; &gt; html)].<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; ... in order to render the results of a survey. On the page I have a<br>&gt; &gt;&gt; &gt; simple<br>&gt; &gt;&gt; &gt; select menu and a button that let's you pick between the available<br>&gt; &gt;&gt; &gt; surveys.<br>&gt; &gt;&gt; &gt; What is happening is the page is being loaded fine, I can select the<br>&gt; &gt;&gt; &gt; survey<br>&gt; &gt;&gt; &gt; fine, hit the button, the results display fine, but then the original<br>&gt; &gt;&gt; &gt; div<br>&gt; &gt;&gt; &gt; with the dropdown and button is also added to the bottom of the #display<br>&gt; &gt;&gt; &gt; div<br>&gt; &gt;&gt; &gt; (see above). The display div is simply:<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; html div<br>&gt; &gt;&gt; &gt; &nbsp;&nbsp;&nbsp; id: 'display'.<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; I've tried taking the div out of the #with: statement where the select<br>&gt; &gt;&gt; &gt; box<br>&gt; &gt;&gt; &gt; and button are also in, but that does not seem to help. There are a<br>&gt; &gt;&gt; &gt; couple<br>&gt; &gt;&gt; &gt; other places I have been using the jQuery replace code, and it appears<br>&gt; &gt;&gt; &gt; to be<br>&gt; &gt;&gt; &gt; working correctly in those instances.<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Thanks,<br>&gt; &gt;&gt; &gt; RS<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; ________________________________<br>&gt; &gt;&gt; &gt; Windows Live™ SkyDrive™: Store, access, and share your photos. See how.<br>&gt; &gt;&gt; &gt; _______________________________________________<br>&gt; &gt;&gt; &gt; seaside mailing list<br>&gt; &gt;&gt; &gt; seaside@lists.squeakfoundation.org<br>&gt; &gt;&gt; &gt; http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; _______________________________________________<br>&gt; &gt;&gt; seaside mailing list<br>&gt; &gt;&gt; seaside@lists.squeakfoundation.org<br>&gt; &gt;&gt; http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>&gt; &gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Windows Live™ Hotmail®: Search, add, and share the web’s latest sports<br>&gt; &gt; videos. Check it out.<br>&gt; &gt; _______________________________________________<br>&gt; &gt; seaside mailing list<br>&gt; &gt; seaside@lists.squeakfoundation.org<br>&gt; &gt; http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>&gt; &gt;<br>&gt; &gt;<br>&gt; _______________________________________________<br>&gt; seaside mailing list<br>&gt; seaside@lists.squeakfoundation.org<br>&gt; 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>