Subj : [SpiderMonkey] Saving Global State To : netscape.public.mozilla.jseng From : "ggadwa@charter.net" Date : Tue Feb 10 2004 12:22 pm OK, I have one last thing to work out with the engine, then I'm done :) This might not be possible, or might just be very complex. Complex is fine. I have a work around for impossible, but it would make anybody creating a script have to handle tons of extraneous scripting that I should be handling behind the scenes. This has come up before, but I don't think I've seen a good answer yet. I need to "save" the state of a script ... BUT .. lucky me, my scripts run by events and all the params passed to the events are generated by me, and therefore the execution state + function params don't have to be saved (saving will always happen when no script has an active call). The SINGLE thing that has to be saved is the global object, which I can get/set easily. The question is: How can I convert it into something I can save, then re-convert back into an object? Doesn't matter what it is; binary stream, text, large, small, don't care :) [>] Brian .