I'm still reading through the replies to my off-list message, which I've
included below.  They're provoking much thought!  Please let me know if
it's OK to post them here, too, or feel free to bring them into the light...

-------- Original Message --------
Subject: A variation on Rado's graph editor
Date: Thu, 02 Jul 2009 13:29:37 -0700
From: Pat LeSmithe <qed777>
To: jason, rkirov, beezer


Hi Jason, Rado, and Rob!

Feeling a bit inspired, I put together a preliminary experiment with
contentEditable divs and Rado's graph editor:

http://www.math.uiuc.edu/~rkirov2/processing/grapheditor_live.html

I've attached an archive of a few files.  The main file is
contedit.html, which pulls graphed.html, which pulls
processing.editor.min.js.  Google provides jQuery/UI.

I tried using processingjs.org's processing.min.js, but it seemed the
strain on my computer was even greater.  However, I don't know much
about *any* flavor of Processing.  It's also quite possible that I broke
something during the mischief.  One oddity:  The canvas's location on
the page seems to affect the accuracy of clicks, at least in Firefox 3.5.

Other issues:  Re-opening multiple editors can trigger a reload, or
perhaps just the randomizing routine.  The styles may clash.  I'm sure
there are many more...

Of course, this is only an example.  There's also much to do, e.g.,
making the whole framework generic, working with selections, ensuring
editor instances don't clash, integrating with the notebook, maybe
converting the editor to pure JavaScript, etc.

I found this contentEditable demo somewhat informative:

http://www.quirksmode.org/dom/execCommand/

Take care!

Sincerely,
Mitesh Patel



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
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://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Attachment: contedit.tbz2
Description: application/bzip-compressed-tar

Reply via email to