JavaScripts generated programmatically and/or placed at the end
JavaScripts generated programmatically and/or placed at the end
- Subject: JavaScripts generated programmatically and/or placed at the end
- From: OCsite via Webobjects-dev <email@hidden>
- Date: Sun, 26 Jan 2020 18:09:29 +0100
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:
(i) scripts which are generated programmatically
So far, I have used directly in the particular component template something like
===
<wo:ERXJavaScript scriptKey="cz.ocs.SomeScript.generated">
<wo:string value="$generatedSomeJS" escapeHTML="no"/>
</wo>
===
Is there a way to exploit somehow the ERXComponent's support for that, to move
these scripts to the <head> too?
(ii) scripts which need to be placed at the end of page
Far as I was able to ascertain, all the <script...> tags for the scripts from
additionalJavascriptFiles are always generated to <head>. Mostly it's precisely
what I need, but time to tome, the script needs to be placed at the end of page
(for it runs something which addresses the page elements). Is there a way to
use the ERXComponent's support for that?
Thanks a lot,
OC
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden