<div>Hello,</div><div><br></div><div>From what I&#39;ve experienced so far, each time you want to insert some javascript code for instance via the jQuery integration, you need to start from html and then you stop using the html renderer further down the path.</div>

<div><br></div><div>This bothers me because each time you want to split functionality up in methods you always have to pass the html method towards the more specific methods as an argument.</div><div><br></div><div><u>for instance:</u></div>

<div><br></div><div>Test&gt;&gt;renderContentOn: html</div><div>  html div style=&#39;width:200px;height:200px;&#39;;</div><div>     onClick: (html jQuery ajax</div><div>        callback: [Transcript show: &#39;hi&#39;])</div>

<div><br></div><div><u>If I were to abstract the onClick method to &quot;sayHi&quot; I&#39;d have to pass the renderer as a parameter:</u></div><div><br></div><div>Test&gt;&gt;renderContentOn: html</div><div>  html div style=&#39;width:200px;height:200px;&#39;;</div>

<div>     onClick: (self sayHiOn: html)</div><div><br></div><div>Test&gt;&gt;sayHiOn: html</div><div>  ^html jQuery ajax callback: [Transcript show: &#39;hi&#39;]</div><div><br></div><div><u>now what I&#39;d like to propose / wonder if it exists is:</u></div>

<div><br></div><div>Test&gt;&gt;renderContentOn: html</div><div>  html div style=&#39;width:200px;height:200px;&#39;;</div><div>     onClick: (self sayHi).</div><div><br></div><div>Test&gt;&gt;sayHi</div><div>  ^self javascript jQuery ajax: [Transcript show: &#39;hi&#39;].</div>

<div><br></div><div><u>to remove the obligatory, unused renderer parameter</u></div><div><br></div><div>Even if there are cases where your renderer needs to be there, which I haven&#39;t encountered yet, a version where you don&#39;t need to pass it along would be handy.</div>

<div>The use of the renderer is to write requested elements to it right?</div><div>But when generating jQuery javascript all you do is return the text and not write it straight to it, to allow concatinating javascript code.</div>

<div><br></div><div>Well that&#39;s about it on the obligatory renderer.</div><div><br></div><div>If it&#39;d ever get through, perhaps also think of expanding WAComponent with the &#39;with&#39; methods like for an Array.</div>

<div>WAComponent&gt;&gt;jsWith:</div><div>WAComponent&gt;&gt;jsWith: with:</div><div>WAComponent&gt;&gt;jsWith: with: with: ... and so on</div><div><br></div><div>This is to prevent a small confusion which I had when I wondered how I could do more jQuery commands in one event, until I figured out it was possibly simply by concatenating.</div>

<div><br></div><div>Greets, Ben</div>