From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2001:558:fe21:29:69:252:207:40; helo=resqmta-ch2-08v.sys.comcast.net; envelope-from=eklhad@comcast.net; receiver= Received: from resqmta-ch2-08v.sys.comcast.net (resqmta-ch2-08v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:40]) by hurricane.the-brannons.com (Postfix) with ESMTPS id F3C66787EF for ; Tue, 30 Jan 2018 06:58:19 -0800 (PST) Received: from resomta-ch2-04v.sys.comcast.net ([69.252.207.100]) by resqmta-ch2-08v.sys.comcast.net with ESMTP id gXLReW3xrvd8rgXMue6mav; Tue, 30 Jan 2018 14:58:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1517324320; bh=MC/HZhXrGbUTZhtwPqAXObgkPXGqG8tIM9kjpcXAppU=; h=Received:Received:To:From:Reply-to:Subject:Date:Message-ID: Mime-Version:Content-Type; b=kGu8sxT28Qa7UzIL4D/ncNVdJc2t73nkjYGSaugM4DWKAiPnVWMd4K4VMalWWFX8D MhgHUKp/q56h2w3JpOP+4+A0nS46F3iw+8aYcO0hmz8wzlksEE8H0WDoh01ypVJDYR s4aV4VBds3yXRUe6Le/dFQaneE/Nz2sOJbNMtX/z3iru+M53mSETQcF7LYtf8gY96D Ht+2zHnuwpoV3NWZfEdIZeAmYs5p++jxy4lzJOmXOxTyg2+f7xYYTIAv4ca3PyVHxY d9wPFGKb/EqAxoelKPz/LptYlH2VQ2IfbnOzkBy5Y//rftb9ZK6SG0/clHKKU3MTtK fPZ/DFUth3NmA== Received: from unknown ([IPv6:2601:408:c300:8f09:21e:4fff:fec2:a0f1]) by resomta-ch2-04v.sys.comcast.net with SMTP id gXMteFZ2gju1PgXMtesqWx; Tue, 30 Jan 2018 14:58:39 +0000 To: Edbrowse-dev@lists.the-brannons.com From: Karl Dahlke Reply-to: Karl Dahlke References: User-Agent: edbrowse/3.7.1 Date: Tue, 30 Jan 2018 09:58:39 -0500 Message-ID: <20180030095839.eklhad@comcast.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=nextpart-eb-289477 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfI6wm3YZkwYOWrQDjJjlRvMvjGyX4uqaiVt17cEb8cUGegPUl3CvQsmRT6ZhwXpmrmLhFlSB5JdKuyU5f+r/0TJ5IPvMU3/7QmFsT4VrqoY00mcR4RD4 SIk7EThg8CGXFjOMPPdASLWCjX/R7+gCkZGi2XWiEAxVh2Biwu5g/vum Subject: [Edbrowse-dev] Dynamic Scripts (fwd) X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.25 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jan 2018 14:58:20 -0000 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --nextpart-eb-289477 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable With latest push, you can create an Iframe dynamically using = document.createElement, and put it just about anywhere. Kevin's immediate program fires immediately, though it is still not = right in a way that you can't see. As I've been doing cross-frame references, I come to realize an = unexpected problem. In side the frame f, create a script s, and then ask: s instanceof = Script, and it fails. Subtle ... It fails because classes are created per window, that is, per frame. If a script is instantiated by any means inside a frame f, it is an = instance of f.contentWindow.Script, not an instance of Script. I'm almost certain that these classes should be defined across all = frames, across all windows, like Array and Date and the like. It would also save time and memory, and that's a nice thing too. I was going to do this a while ago, put them all in eb$master, but = there was a snag, a reason not to, and I don't remember the gotcha = right now. I'll go back and look, because it's a tad more important than I thought = it first was. Karl Dahlke --nextpart-eb-289477--