<br><br><div class="gmail_quote">On Fri, Aug 28, 2009 at 5:17 PM, Timothy James Ziebart <span dir="ltr">&lt;<a href="mailto:timothy@churchmilitant.org">timothy@churchmilitant.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thank you Hernán and Juan.<br>
<br>
I Implemented the GoogleMap as a subclass of SFObject and did as Juan suggested.  And you were right in that while the pane was updated correctly I still need the javascript to update the client  So I am one step away.  I am a not sure what is the best way to implement the script.  I have the updateButtonPressed message replace the panes.  How would evaluateJavacript and the updater get triggered?<br>

<br>
Tim<div><div></div><div class="h5"><br></div></div></blockquote><div><br></div><div>Hi Tim</div><div><br></div><div><font size="2">
When the updater is triggered (with the &quot;press&quot; button), the
#refreshOn: message is sent, so just here you should just &quot;update&quot; and
&quot;evaluate&quot; the refresh javascript code. In your case, you should do
something like :<br>



</font><font size="2"><br></font><font size="2">TimGoogleMap </font><font size="2">&gt;&gt;refreshOn: aScript</font><br><font size="2">&quot;redrawing the control (generally just to replace the tag)&quot;<br>
</font><font size="2">    aScript element <br>



            id: self styleId;<br>
            replace: [: render | render render: self ].</font><br><font size="2">&quot;Evaluate JS update code&quot;<br>      </font><font size="2">aScript </font><font size="2">add: (SUStream new<br>                               nextPutAll: &#39; &quot;updateCode&quot; &#39;;<br>



                               arguments: anArguments;<br>                               yourself)<br>
<br>Please try it with the newest version available on  </font><a title="static project url" href="http://www.squeaksource.com/SmallFaces.html">http://www.squeaksource.com/SmallFaces.html</a><font size="2">.</font><br>
<font size="2"><br>
Juan M.</font></div></div>