Thomas, Thanks, that's exactly what I need, I'll take a look at the Solitaire example now.
Just a quick question, I guess I'm having trouble getting my head around where DOMTextEvent is best used. What is the difference, if any, between using DOMTextEvent and doing an addEventListener such as: evtTgt.addEventListener("keypress", new EventListener(){ public void handleEvent(Event evt) { // evt.stopPropagation(); DOMKeyEvent q = (DOMKeyEvent)evt; eid = evt.getTimeStamp(); log.debug("SVGKeyListeners("+eid+")-KeyPress Event, Detail is: "+q.getDetail()+", KeyCode is: "+q.getKeyCode()); SVGOMElement soe = (SVGOMElement)evt.getCurrentTarget(); d.execDOMMethod(nsURI, soe, "keypress", evt, eid); } }, false); ? Is DOMTextEvent strictly for creating/generating an Event of the type Text Event? If so, then what is DOMTextEvent.getData for? Is this where the implementation provides the data to the calling method of the data the implementation represents as the Text in the event? Sorry for working this out on your time but I'm full in the thick of it and don't want to have to backtrack to re-code if I don't have to, Thanks, K. W. Landry On 12/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi KW. "K. W. Landry" <[EMAIL PROTECTED]> wrote on 12/24/2006 08:08:02 PM: > Can anyone point me to any code segments that utilize DOMTextEvent? Well we use DOMTextEvent for 'text entry' (typing on the keyboard). I don't think there is any DOM 'TextSelectionEvent'. > I'm trying to work out how to leverage it in creating an edit > session for text on the jsvgcanvas. I've read about using a > component instead but this effort has to be 100% DOM based. The solitaire example does this, in the samples/solitaire/script/board.js. This actually uses "keypress" events, but the idea is the same.