<div dir="ltr"><div>This works:</div><div><span style="white-space:pre-wrap"><span style="font-size:12.8px;white-space:normal"><div>html document addLoadScript: (</div><div><span style="white-space:pre-wrap">        </span>html jQuery document onAjaxComplete:(</div></span><div style="font-size:12.8px;white-space:normal"><span style="white-space:pre-wrap">                </span>(html jQuery id: self classicMenuComponent systemMessageNotifier mainDivId)</div><span style="font-size:12.8px;white-space:normal"><div><span style="white-space:pre-wrap">                        </span>load</div><div><span style="white-space:pre-wrap">                          </span>global: false; &quot;to avoid inifite recursion&quot;</div></span><div style="font-size:12.8px;white-space:normal"><span style="white-space:pre-wrap">                          </span>html: [:r | self classicMenuComponent systemMessageNotifier renderContentOn: r ]</div><div style="font-size:12.8px;white-space:normal"><span style="white-space:pre-wrap">        </span>)</div><div style="font-size:12.8px;white-space:normal">)</div></span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">Given you modify the supported options to include the &quot;global&quot; option.</span></div><div><br></div><div><div>JQLoad&gt;&gt;#isSupportedOption: aString</div><div><span style="white-space:pre-wrap">        </span>^ #(&#39;url&#39; &#39;data&#39; &#39;complete&#39; &#39;global&#39; &quot;(&quot; &#39;dataType&#39; &quot;)&quot;) includes: aString</div></div><div><br></div><div><br></div><div>Given load() is a shorthand function in jQuery, there is no reason to not include such option in the supported ones.</div><div><br></div><div>Regards,<br></div><div><br></div><div class="gmail_extra"><br clear="all"><div><div data-smartmail="gmail_signature">Esteban A. Maringolo</div></div>
<br><div class="gmail_quote">2016-09-23 18:28 GMT-03:00 Esteban A. Maringolo <span dir="ltr">&lt;<a href="mailto:emaringolo@gmail.com" target="_blank">emaringolo@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span>2016-09-23 18:18 GMT-03:00 Esteban A. Maringolo &lt;<a href="mailto:emaringolo@gmail.com" target="_blank">emaringolo@gmail.com</a>&gt;:<br><br>&gt; Beware you&#39;re doing html jQuery ajax every time you evaluate the onAjaxComplete: function, and that is discouraged, because you&#39;re not working in an instance of jQuery, but instead on the class.<br><br></span>Nevermind this, I got confused, it is the ajaxSetup that is discouraged. I&#39;ve been using `html jQuery ajax` all over the place.<div><br></div><div>It&#39;s the #script:/replaceWith: that confused me, I&#39;m used to do what you do inside #script: in an onSuccess:/onError: handler and use html: instead of #replaceWith:<br><br>Regards!<span><font color="#888888"><br><br>Esteban A. Maringolo<br><br></font></span></div></div>
</blockquote></div><br></div></div>