[Seaside] Creating a component that requires a callback:

Boris Popov boris at deepcovelabs.com
Mon Nov 24 18:08:19 UTC 2008


You might want to take a look at a very similar implementation of
FusionCharts I did a while ago. The fileout is quite old and the
implementation evolved substantially internally and sharing that might
be a bit of an issue, but it should certainly show you enough to get
started.

http://www.fusioncharts.com/

They aren't free, but that's what DabbleDB is using, I believe.

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message header.
Unless otherwise indicated, it contains information that is private and
confidential. If you have received it in error, please notify the sender
and delete the entire message including any attachments.

Thank you.

-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Gerardo
Richarte
Sent: Monday, November 24, 2008 9:43 AM
To: Seaside - general discussion
Subject: Re: [Seaside] Creating a component that requires a callback:

Philippe Marschall wrote:
> What you're about to do is pretty advanced in terms of Seaside use.
> You'll be confronted with implementation details that the normal
> component developer never comes in contact with.
>
>   
    heh, I hope to manage :)
>     renderContentOn: html
>         html script: 'doSomethingRequiringURL(', self  callbackUrlFor:
> [ self settingsXml  ]');'
>   
    thanks a lot, I think this'll give me a kick start.
> PlotKit sends all the data to the client in the JavaScript, not
> callbacks are made or supported. PlotKit also uses components and not
> compounds.
>   
    yeah, I noticed. But this flash component I'm trying to use
loads stuff from a URL (and in the meantime it puts a nice
"loading" message). My dataset is large, so I prefer this other
approach.

    Now, I found another way to do it, and I don't need to generate
the configuration XML in a callback anymore, but I still want a
callback for the data itself. I'll try to manage with your example.
> Other places where you can look for inspiration are Scriptaculous
> (generates XML and JS dynamically for the client, can be used through
> the html canvas) and Sextant (SVG with callbacks).
>   
    Yeah, I dived into its code, but got lost quite quickly :(
> AFAIK DabbleDB uses flash for at least some of their charts so maybe
> they can help you as well.
>   

uhm... interesting idea. I'll take a look, the do have a few controls
that look like what I want to do.

    Thanks for the ideas.
    richie
_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Seaside-FusionCharts.st
Type: application/octet-stream
Size: 14814 bytes
Desc: Seaside-FusionCharts.st
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20081124/a754f01f/Seaside-FusionCharts.obj


More information about the seaside mailing list