[Seaside] Javascript, SVG and callbacks
Lukas Renggli
renggli at gmail.com
Thu Oct 30 17:17:04 UTC 2008
Have a look at SURequest of the Scriptaculous package. This is doing a
request in the background triggering a callback on the server.
Lukas
On Thu, Oct 30, 2008 at 5:29 PM, Marco D'Ambros
<marco.dambros at lu.unisi.ch> wrote:
> Hi,
>
> I am trying to attach to an anchor a Javascript action and a callback, but
> did not succeed so far.
> To be more precise, I am working with SVG figures and I want to remove a
> figure from the html page (without refreshing it) and the object linked to
> the figure from the smalltalk application.
>
> To remove the figure I can do something like:
>
> (html svgAnchor)
> onClick: (html javascript add: 'var p =
> document.getElementById(''canvas_contents''); var c =
> document.getElementById(''anchor-',self id,'''); p.removeChild(c);');
> id: 'anchor-', self id ;
> with: [ self drawOn: html]
>
> But I would need also a callback to update the "smalltalk side" and remove
> the object linked to the svg figure.
>
> Any ideas?
>
> Thanks and cheers
> Marco
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the seaside
mailing list