From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from qmta07.westchester.pa.mail.comcast.net (qmta07.westchester.pa.mail.comcast.net [IPv6:2001:558:fe14:43:76:96:62:64]) by hurricane.the-brannons.com (Postfix) with ESMTP id 3C81F781BD for ; Tue, 4 Feb 2014 14:04:12 -0800 (PST) Received: from omta13.westchester.pa.mail.comcast.net ([76.96.62.52]) by qmta07.westchester.pa.mail.comcast.net with comcast id NLCF1n00317dt5G57N3gC0; Tue, 04 Feb 2014 22:03:40 +0000 Received: from eklhad ([107.5.36.150]) by omta13.westchester.pa.mail.comcast.net with comcast id NN3g1n00S3EMmQj3ZN3gJP; Tue, 04 Feb 2014 22:03:40 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke User-Agent: edbrowse/3.4.10 Date: Tue, 04 Feb 2014 17:03:41 -0500 Message-ID: <20140104170341.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1391551420; bh=QqtSJcpbd2V5A0u/BhdaabGBN3yQdy1rlkm5eZ/TprA=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=YyFApCSVNwzeRv/i2zJBEl+En3utg56bm32BrnxmQT45CqA3R/jxSQmPz5zZHvhM6 5btvYQDwDTIZlf1MCcJ1NZv32+jOxx3cGWCKkvE0bdR/bLM35t8q/WwlSnu+7Xbm3H Y2VY6yft3ZM1xYjmAuqW37lS5piw0uf+pstsWLnFq3lG8+yGBR4TVOc4E1zBsM7c6P C+L/wLobteoNk//Wqwu0CvTFTMgTDt7/4JKqImJGAopicCKebMF9S5vQC8/lQ7Gtbc PEYVmXClphX1qUG1F8idG+ge2RnKfRk1KqD08KcP76j3Q9z7O9SOUPhUwz3G/8U6fM pxgjHfPljT+gw== Subject: [Edbrowse-dev] compartments X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Karl Dahlke List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Feb 2014 22:04:12 -0000 > 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