Lukas,<br><br>Thanks for your assistance.<br><br>I know how to put the link into Google Maps so I am covered there.&nbsp; What I need is basically this:&nbsp; a link that provides something like &quot;javascript:addToCollection(&#39;123456&#39;);&quot;.&nbsp; When the user clicks on the link it makes an Ajax call and adds to a collection on the server.&nbsp; 123456 would be a code that I can then use to address the marker on the google map.&nbsp; The point is I need to build the addToCollection links on the client side in javascript, so I assume I need to generate a Seaside wrapper function which then carries the 123456 parameter into my callback.<br>
<br>I tried to use the code you provided in one method and I get:<br><br>MessageNotUnderstood: SUScript&gt;&gt;render:<br><br>I fiddled around in the debugger, but was not sure how to resolve this.&nbsp; I tried using #render:on: and didn&#39;t get much better results.&nbsp; Am I using an out of date Scriptaculous package?<br>
<br>Chris<br><br><div class="gmail_quote">On Tue, Jun 3, 2008 at 11:10 PM, Lukas Renggli &lt;<a href="mailto:renggli@gmail.com" target="_blank">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>&gt; I&#39;m really enjoying the Ajax integration with Seaside. &nbsp;Thanks Lukas!<br>
<br>
</div>Thank you.<br>
<div><br>
&gt; I&#39;m trying to embed a hyperlink into a third party widget (Google Maps). &nbsp;I<br>
&gt; want to place a link into the marker and then execute an ajax call that<br>
&gt; updates a list on the server when a user clicks on that link. &nbsp;I&#39;m confused<br>
&gt; how I should implement this because I don&#39;t understand what parameters I<br>
&gt; should use for the session variables and Seaside+Scriptaculous builds the<br>
&gt; IDs and everything else for me. &nbsp;I assume I should define a wrapper method<br>
&gt; that then calls into a seaside generated ajax method, but since all the Ajax<br>
&gt; code is so tightly wrapped into Seaside, I&#39;m struggling on where to do this.<br>
&gt; &nbsp;I love that I don&#39;t even have to think about Ajax in order to use it, but<br>
&gt; in this case I&#39;d like to find a hook into the process.<br>
<br>
</div>I don&#39;t know how you pass this link to Google Maps?<br>
<br>
If you want to generate an URL-String for a given AJAX updater you can<br>
write something like:<br>
<br>
 &nbsp;(html updater id: &#39;foo&#39;; callback: [ :r | r render: &#39;bar&#39; ]; url) asString<br>
<br>
Is this what you want? Or do you also need an XHTML snippet with an<br>
anchor tag around that?<br>
<br>
 &nbsp;(html javascript render: [ :h1 |<br>
 &nbsp; &nbsp;h1 anchor<br>
 &nbsp; &nbsp; &nbsp; onClick: (h1 updater<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;id: &#39;someId&#39;;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;callback: [ :h2 | h2 render: &#39;Hello World&#39; ]);<br>
 &nbsp; &nbsp; &nbsp; with: &#39;Click Me&#39; ]) asJavascript<br>
<br>
I guess you get the idea ;-)<br>
<br>
Cheers,<br>
Lukas<br>
<font color="#888888"><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" target="_blank">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>
</font></blockquote></div><br>