Re: JavaScripts generated programmatically and/or placed at the end

2020-01-27 Thread Aaron Rosenzweig via Webobjects-dev
Hi OC, Offhand what you are asking is probably possible; however I have a suggestion to not fight against the grain. If you are using prototype, then wait for the “dom loaded event” like so: http://api.prototypejs.org/dom/document/observe/ jQu

JavaScripts generated programmatically and/or placed at the end

2020-01-26 Thread OCsite via Webobjects-dev
Hi there, for once, no deep mystery, but a plain API-related question :) I am just switching my old very hap-hazard and ugly way of loading javascripts as needed by components to the very neat ERXComponent's support of additionalJavascriptFiles. Mostly it works like a charm, but for two cases: