William wrote:

> Finally, it would be really cool to have similar scientific calculators, but 
> for
> special subject areas, e.g., graph theory, combinatorics, elliptic curves, 
> etc.
> These would rock.

I have a couple of thoughts related to this.

1) Not only can the applet inject javascript code into the browser,
but it can also inject SAGE code into a worksheet.  When a given
applet launches, it can automatically inject code into the SAGE
environment on the server which can be used by the user to interact
with the applet.

For example, a graphing applet might inject an object called cgraph
into the worksheet and then the user might type the following into a
cell to view the graph on the applet:

  cgraph(x^2, 0, 10)

cgraph will know how to communicate with the applet it came from and
each applet can even have its own unique protocol using this "proxy
object" technique

With approach, the applet code will be very loosely coupled with the
SAGE server code and applet development can occur without having to
coordinate with the SAGE developers very much.


2) It should also be possible for the SAGE server to inject a data
file into the applet that tells the applet what kind of GUI to create.
 Also, JavaSE comes with a javascript interpreter.  Therefore,
javascript can be injected into the applet from the server so people
can create their own applets using Javascript and then the scripts can
be saved in the notebook and used as needed.  This might make it
easier for people to create their own custom calculators and other
applets.

Ted

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to