I&#39;m almost there.<br><br>I have a marker on the map which houses a link with an onclick handler called &#39;addLocation( &quot;123456&quot; );&#39;.&nbsp;&nbsp; So, I tried to define addLocation like this:<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; html script: (&#39; function addLocation( theId ) { &#39;, ((<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; html updater<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; id: &#39;locations&#39;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback: [ :v | <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; locations add: ( myLocation new title: v ).<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; self renderLocationsOn: html.<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ]<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; value: (SUStream on: &#39;theId&#39;)) asJavascript ), &#39;; }&#39; ).<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ]<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ]<br><br>This crashes my updater.&nbsp; It does pass the value of theId properly as this is stored into the MyLocation collection.&nbsp; But, it seems I need an html object renderer passed back to me.&nbsp; <br>
<br>Chris<br><br><br><div class="gmail_quote">On Wed, Jun 4, 2008 at 11:24 PM, Lukas Renggli &lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">&gt; When the user<br>
&gt; clicks on the link it makes an Ajax call and adds to a collection on the<br>
&gt; server.<br>
<br>
</div>Ok, if you don&#39;t want to update then simply use the AJAX requestor:<br>
<br>
 &nbsp; &nbsp; (html request callback: [ coll add: 123 ])<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;asJavascript<br>
<br>
This expression gives you a string that when evaluated by the<br>
Javascript engine triggers the execution of the Smalltalk block on the<br>
server.<br>
<br>
If you need to pass some data from the JavaScript world to the server<br>
you can use something like that:<br>
<br>
 &nbsp; &nbsp; &nbsp;(html request<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; callback: [ :v | coll add: v ]<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value: (SUStream on: &#39;navigator.appName&#39;))<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;asJavascript<br>
<br>
In this case the property navigator.appName is passed to the server.<br>
As far as I understand you want to pass some Google Maps data there.<br>
<div class="Ih2E3d"><br>
&gt; I tried to use the code you provided in one method and I get:<br>
&gt;<br>
&gt; MessageNotUnderstood: SUScript&gt;&gt;render:<br>
<br>
</div>I write most of the examples for the mailing-list directly in the<br>
mail-application, therefore there is usually some significant amount<br>
of fixing needed before usage. I only try to clear what the general<br>
approach is.<br>
<br>
For the example in the previous mail: Remove #asJavascript, the thing<br>
is already a string. SUScript in my Seaside 2.8 images understands<br>
#render:.<br>
<div class="Ih2E3d"><br>
&gt; tried using #render:on: and didn&#39;t get much better results. &nbsp;Am I using an<br>
&gt; out of date Scriptaculous package?<br>
<br>
</div>I don&#39;t know what platform and version you are on.<br>
<div><div></div><div class="Wj3C7c"><br>
Cheers,<br>
Lukas<br>
<br>
--<br>
Lukas Renggli<br>
<a href="http://www.lukas-renggli.ch" target="_blank">http://www.lukas-renggli.ch</a><br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br>