xrdawson at gmail.com
Thu Jun 5 02:25:10 UTC 2008
Thanks for your assistance.
I know how to put the link into Google Maps so I am covered there. What I
need is basically this: a link that provides something like
it makes an Ajax call and adds to a collection on the server. 123456 would
be a code that I can then use to address the marker on the google map. The
point is I need to build the addToCollection links on the client side in
then carries the 123456 parameter into my callback.
I tried to use the code you provided in one method and I get:
I fiddled around in the debugger, but was not sure how to resolve this. I
tried using #render:on: and didn't get much better results. Am I using an
out of date Scriptaculous package?
On Tue, Jun 3, 2008 at 11:10 PM, Lukas Renggli <renggli at gmail.com> wrote:
> > I'm really enjoying the Ajax integration with Seaside. Thanks Lukas!
> Thank you.
> > I'm trying to embed a hyperlink into a third party widget (Google Maps).
> > want to place a link into the marker and then execute an ajax call that
> > updates a list on the server when a user clicks on that link. I'm
> > how I should implement this because I don't understand what parameters I
> > should use for the session variables and Seaside+Scriptaculous builds the
> > IDs and everything else for me. I assume I should define a wrapper
> > that then calls into a seaside generated ajax method, but since all the
> > code is so tightly wrapped into Seaside, I'm struggling on where to do
> > I love that I don't even have to think about Ajax in order to use it,
> > in this case I'd like to find a hook into the process.
> I don't know how you pass this link to Google Maps?
> If you want to generate an URL-String for a given AJAX updater you can
> write something like:
> (html updater id: 'foo'; callback: [ :r | r render: 'bar' ]; url) asString
> Is this what you want? Or do you also need an XHTML snippet with an
> anchor tag around that?
> h1 anchor
> onClick: (h1 updater
> id: 'someId';
> callback: [ :h2 | h2 render: 'Hello World' ]);
> I guess you get the idea ;-)
> Lukas Renggli
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside