Subj : Re: Create Vars from C To : netscape.public.mozilla.jseng From : Frank Luctos Date : Fri Mar 25 2005 09:04 am Thanks, Todd. I understand creating custom objects and have been doing that for a while. What I've never had occasion to do is to have an instance of an object created automatically, e.g. without the script author having to execure a "new" statement. Can anyone tell me how to do the equiv. of a "var x = new obj" from within my C code? thanks again, Frank "Todd Fisher" wrote in message news:mailman.1111716180.4452.mozilla-jseng@mozilla.org... > Hi Frank, > I haven't tried it yet but I did read through and thought this document > was very informative. So, I thought you might also find it helpful :-) > http://users.skynet.be/saw/SpiderMonkey.htm > > -Todd > > Frank Luctos wrote: > >>Hi, >> >>Can anyone tell me how I can create an object in my C code that is visible >>inside a JavaScript? >> >>To explain, lets say I want a variable called "MyVar" inside my JavaScript >>that points to an object I've created. >> >>What SpiderMonkey API's do I have to execute in the C code to make that >>MyVar available inside a particular script? >> >>Thanks in advance, >> >>Frank >> >>_______________________________________________ >>mozilla-jseng mailing list >>mozilla-jseng@mozilla.org >>http://mail.mozilla.org/listinfo/mozilla-jseng >> > > .