• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
JavaScripts generated programmatically and/or placed at the end
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: JavaScripts generated programmatically and/or placed at the end
      • From: Aaron Rosenzweig via Webobjects-dev <email@hidden>
  • Prev by Date: Re: Problem running from Eclipse
  • Next by Date: Re: Problem running from Eclipse
  • Previous by thread: Re: Problem running from Eclipse
  • Next by thread: Re: JavaScripts generated programmatically and/or placed at the end
  • Index(es):
    • Date
    • Thread