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 mout.gmx.net ([212.227.15.18] verified) by selbstdenker.ag (CommuniGate Pro SMTP 6.3.13d) with ESMTPS id 28217671 for webobjects-dev@wocommunity.org; Fri, 15 Jul 2022 19:55:33 +0200 Received-SPF: pass receiver=post.selbstdenker.com; client-ip=212.227.15.18; envelope-from=rasc@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1657907713; bh=tCkpFlNLyRXbPI5JATdaAvg/7uY6nbZkNTlCxbiNkwY=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=eGqDddUuiC2mwlZ7nnYD3M3hRxWrhG7VxHmOrTHkIArK+ZIFnX6ttgXUNshswPp+m D1meHHbbXwP2yuHL4wenPtbaSOE0kXt8EfB0F2sCfX+vhehgqGD135oFXIXY3EaueV l3egdbjUWm0h5qqIFKLe/skzu+V5NfxvGrFtghGg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [10.10.11.100] ([5.61.173.151]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M1poA-1oEbOL0EaO-002FBl for ; Fri, 15 Jul 2022 19:55:13 +0200 From: Ralf Schuchardt To: "WebObjects & WOnder Development" Subject: Re: [WO-DEV] ERXStyleSheet inside AjaxModalDialog Date: Fri, 15 Jul 2022 19:54:42 +0200 X-Mailer: MailMate (1.14r5895) Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_MailMate_DBF8E9C9-D806-4C44-A4C6-C3FF0BE4E826_=" Embedded-HTML: [{"plain":[785,2633],"uuid":"F725901C-EB93-48DC-AC80-D5BCD69CA3C6"}] X-Provags-ID: V03:K1:IFanfl7TfuaRifvr7fuy+oztG1faiM07cQdXG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VvHqF794Wv5o8xs4ZRg0GNS75W+ygMSg/+5mrE69l92OW2hvcp9+3zx rX6zlUwBmeJyOQe+1CsubmcIKN5zg2sVFhxyMDKby6NLn6dNL4iOt83U4V4tOJeXvhosA90fL DISNI6uVbwbGwZMh8JmqEwcWXFfIGQMAlmTYNnMGhW5NdvKnHfMG33PvTNhKqqvWH4NCscyM5 5sLrA5CZHFft3YNL1O7we86ul5lGetF3/O8a0ODfFsskbQ0X4CypB3HqQjsWt6QSlhaMuc4OZ VE4w0QTdnJQm6sefkFCsrwbZfc6qgTxDqUs --=_MailMate_DBF8E9C9-D806-4C44-A4C6-C3FF0BE4E826_= Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Markus, the Modalbox strips any script tags from the Ajax response before displaying the content. 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. I would try to include any scripts or css needed in the containing page or component. 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). Ralf On 15 Jul 2022, at 15:48, Markus Ruggiero (rucotec) wrote: > It=E2=80=99s getting weirder and weirder. Similar thing happens now with= JS. > > does not even show up in WebInspector and thus my component fails > miserably. > > 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 > > > > > > > > > > > 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 n= ot show > up. > The second one resolves the webobject element as WOResourceURL. I > expect this to result in something like