• 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: CSS file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CSS file


  • Subject: Re: CSS file
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 5 Oct 2017 07:43:59 -0400

Yes, but that is too much typing for me. I will quote the great uses that have
always said to me, “You are working too hard!”

have you downloaded and are you using Project Wonder?


> On Oct 5, 2017, at 6:05 AM, André Rothe <email@hidden> wrote:
>
> Hi Theodore,
>
> It seems that it also works with a WOString within the <head> tag:
>
> <head>
> <webobject name = "cssLink"/>
> </head>
>
> cssLink : WOString {
>   value = cssLink;
>   escapeHTML = false;
> }
>
> public String getCssLink() {
>  WOResourceManager res = application().resourceManager();
>  return "<link rel=\"stylesheet\" href=\"" +
> res.urlForResourceNamed("Messages.css", null, null, getRequest()) + "\"
> type=\"text/css\" />";
> }
>
> It should be possible too, to read the content of Messages.css with the
> WOResourceManager and put the bytes into the WOString value together with a
> <style> tag. Webobjects seems to be pretty cool :-)
>
> Best regards
> Andre
>
>
> Am 2017-10-04 15:35, schrieb Theodore Petrosky:
>> here is a complete example:
>>    <wo:ERXStyleSheet filename = "calendarFix.css" framework = "app"
>> media = "screen" />
>>> On Oct 4, 2017, at 9:13 AM, André Rothe <email@hidden>
>>> wrote:
>>> Hi,
>>> I have created a CSS file within the WebServerResources folder of my
>>> project. How I can add it as a static link to the <head> tag of my
>>> component page? How is the relative path, or should I use the
>>> WOResourceManager to set the path for a WOxyz component?
>>> <head>
>>> <link rel="stylesheet" type="text/css" href="messages.css">
>>> </head>
>>> Best regards
>>> Andre
>>> --
>>> UNIVERSITÄT LEIPZIG
>>> Medizinische Fakultät
>>> Zentrum für Klinische Studien Leipzig – KKS
>>> André Rothe
>>> CIO
>>> Härtelstr. 16-18, 04107 Leipzig
>>> Tel: 0341/ 97 16118
>>> Fax: 0341/ 97 16189
>>> WWW: http://www.zks.uni-leipzig.de
>>> _______________________________________________
>>> 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
>> .
>> _______________________________________________
>> 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

 _______________________________________________
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

References: 
 >CSS file (From: André Rothe <email@hidden>)
 >Re: CSS file (From: Theodore Petrosky <email@hidden>)
 >Re: CSS file (From: André Rothe <email@hidden>)

  • Prev by Date: Re: CSS file
  • Next by Date: Re: CSS file
  • Previous by thread: Re: CSS file
  • Next by thread: Re: CSS file
  • Index(es):
    • Date
    • Thread