• 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
Re: Adding CSS and JS to the components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding CSS and JS to the components


  • Subject: Re: Adding CSS and JS to the components
  • From: Mike Schrag <email@hidden>
  • Date: Tue, 30 Sep 2008 07:40:17 -0400

ERXResponseRewriter .addStylesheetResourceInHead(context().response(), context(), null, "my.css");
ERXResponseRewriter.addScriptResourceInHead(context().response(), context(), null, "my.js");
I would only use this method if you're injecting CSS/js from a subcomponent. If you are adding it in your headerfooter component, you should use:

<wo:ERXStyleSheet framework="whatever" filename="CSS/MyCSSFile.css"/>
<wo:ERXJavaScript framework="whataver" filename="Javascript/ MyJavascriptFile.css"/>


ms

_______________________________________________
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: Adding CSS and JS to the components
      • From: Gavin Eadie <email@hidden>
    • Re: Adding CSS and JS to the components
      • From: WebObjects <email@hidden>
References: 
 >Adding CSS and JS to the components (From: WebObjects <email@hidden>)
 >Re: Adding CSS and JS to the components (From: Josh Paul <email@hidden>)

  • Prev by Date: Re: Adding CSS and JS to the components
  • Next by Date: Re: Adding CSS and JS to the components
  • Previous by thread: Re: Adding CSS and JS to the components
  • Next by thread: Re: Adding CSS and JS to the components
  • Index(es):
    • Date
    • Thread