X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.22.2a (ClamAV engine v0.102.2) X-Junk-Score: 0 [] X-KAS-Score: 0 [] Return-Path: Received: from mail01.rucotec.ch ([65.21.159.64] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.13d) with ESMTPS id 28219181 for webobjects-dev@wocommunity.org; Sat, 16 Jul 2022 13:00:47 +0200 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=65.21.159.64; envelope-from=markus.ruggiero@rucotec.ch Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4D86E5DE5C for ; Sat, 16 Jul 2022 13:00:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rucotec.ch; s=dkim; t=1657969226; h=from:subject:date:message-id:to:mime-version:content-type:in-reply-to: references; bh=JEfMfokl1FLHaztjGiNLoOsf6ifBUyxZW3/E1RrGaJA=; b=OZ+qpHHIBZ6P+eOANCDoGxwiz8I1LfhBic6az9CkYVNWkK6xRv4VOIcfA0RlPZVq0kPiAc rhrrgLt9O0YVgiUHQTJShxGcMq3+nMgdWvdMFI3mRz/VavKFawVUGduGxo2u9I5x8Ty+t3 fgAgFxjBz7i087XjrGFwjls6kuOA4MlhDGHhhsyv5gkk5JjprRiLP7BrUPM7ZML6YhES/Z Z3cnxC4OtEmKc+u6xrmnkDdC7LQ9opwRBnybd9UxBUCZjuUEpAn3XBiISV68LLggwB1o2C 6X0u/r9g0ZxS2M+zyquh8fzu3YOXJvhh1oefDp3/OzJ1YkxU9Rd2IwDXVCRgwQ== From: "Markus Ruggiero (rucotec)" Content-Type: multipart/signed; boundary="Apple-Mail=_7A243919-5266-41C9-B535-9B5CACA8B3E8"; protocol="application/pkcs7-signature"; micalg=sha-256 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: [WO-DEV] ERXStyleSheet inside AjaxModalDialog Date: Sat, 16 Jul 2022 13:00:25 +0200 References: To: WebObjects & WOnder Development In-Reply-To: Message-Id: X-Last-TLS-Session-Version: TLSv1.2 X-Rspamd-Fuzzy: 59ca0e25d11daf795cc91e310fabe1e7f4aae223b086a1223f290d5398ae3494e600823d12e2754a5d6cadce8498d481fcc4dd5b398665749365ef8c6692dea0 --Apple-Mail=_7A243919-5266-41C9-B535-9B5CACA8B3E8 Content-Type: multipart/alternative; boundary="Apple-Mail=_3BB06C3F-1D65-4003-94A9-47A93487672A" --Apple-Mail=_3BB06C3F-1D65-4003-94A9-47A93487672A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 15 Jul 2022, at 19:54, Ralf Schuchardt wrote: >=20 > Hi Markus, >=20 > the Modalbox strips any script tags from the Ajax response before = displaying the content.=20 > But the scripts should still be evaluated in the current window = context (modalbox.js lines 290 and 291). It seems to me the = extractScript function only looks at the content of the tag, and it will = not load anything remote, so your second example will probably not work. >=20 >=20 Thanks for the explanation, helps a lot in understanding > I would try to include any scripts or css needed in the containing = page or component.=20 >=20 Probably the way to go. Wanted to have the modal dialog as = self-contained as possible. Maybe creating a wrapper component around = the modal dialog with all the necessary infrastructure and then add this = one instead of the dialog directly?=20 Need to try couple things out. Thanks again for getting me out of my loop of thinking > ERXComponent has primaryJavascriptFile() and = additinalJavascriptFiles() functions (and similar functions for CSS) to = override in a component, that will dynamically insert corresponding = script tags in the page header (but probably not when called with Ajax). >=20 > Ralf >=20 >=20 > On 15 Jul 2022, at 15:48, Markus Ruggiero (rucotec) wrote: >=20 > It=E2=80=99s getting weirder and weirder. Similar thing happens now = with JS.=20 > > does not even show up in WebInspector and thus my component fails = miserably. >=20 > I think I am missing some basic (or might that be advanced?) = understanding of html and the script and style elements. > This is the start of the html for the component that provides the = content of the modal box >=20 > >=20 > > >=20 > >=20 > >=20 > None of the script tags show up in the web inspector. > The first one is hardcoded but the string =E2=80=9Cdummy=E2=80=9D does = not show up. > The second one resolves the webobject element as WOResourceURL. I = expect this to result in something like