Subj : Good sample c++ application To : netscape.public.mozilla.jseng From : Thomas Sondergaard Date : Wed Jul 27 2005 10:25 am I'm embedding spidermonkey in a c++ application where it is my intention to allow an object to be modified by a javascript script before the object is applied - much like a HTML DOM document can be modified by embedded javascript before it is rendered. Like a HTML DOM document my object (which btw is a DICOM Hanging Protocol - a hanging protocol specifies how medical images are presented to a viewer) is a tree-like structure where the elements have different types. There are about 10 classes that will need to be accessible from javascript. Unlike DHTML i only want to run my script once, before the object, which represents a formatting, is applied. So some c++ objects will exist prior to engine initialization and some will exist afterwards. I've read the documents on embedding spidermonkey, and it looks very clean an elegant, but I'd like to see a complete example, so I was wondering if you could recommend an existing open source project that is a good sample to learn from. The smaller the better, of course :-) Best regards, Thomas Sondergaard .