> When I say a page within a window I'm referring > to the ability of edbrowse to go back pages.
cw = cw->prev That's a little over simplified, but that's the idea, go back to the previous edbrowse window, a completely separate window. Really not different from switching buffers. The previous window has its own context, its own global object, its own html page, etc. >In theory, but the compartment field is, by default, NULL. Ok. I'm not going to mess with it now, I'm working on the representation of lines, but I may want to remove all those calls and just put one in jSyncup(), and see if that works. That is the function that is always called when you enter the world of javascript. Click a button, submit a form, change a field with onchange code, any of those things, calls jSyncup(). This takes any changes you made to the form in html and updates the corresponding js variables, so you see it would have to be called first before running any js. If it also set the compartment we would be good, I think. And we don't really have to be RAII to do this, just set the comparment to what it should be at that point, though RAII doesn't hurt. There might be a simpler function call. I'll experiment when I'm not in the middle of other changes. Karl Dahlke _______________________________________________ Edbrowse-dev mailing list [email protected] http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev
