• 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: Images in css files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Images in css files


  • Subject: Re: Images in css files
  • From: Randy Wigginton <email@hidden>
  • Date: Sun, 30 Nov 2008 05:57:34 -0800

Thank you, this is what I ended up doing because I could not find any other way.

On Nov 30, 2008, at 4:33 AM, Hugi Thordarson wrote:

As I've become older and wiser (and computers gain more processing power) I've moved away from static resources. They limit my abilities to do cool stuff :-).
But if you're still using statically served CSS-files, I'd recommend moving the declaration for css-classes that reference WO resources to your component.


[warning! pseudocode!]

HTML:
<style type="text/css">
	#globalNav {
		background-image: url( <webobject name="URL_STRING" /> );
	}
</style>

WOD:

URL_STRING: WOResourceURL {
	filename = "glbnav_background.gif";
}


Cheers, - Hugi

// Hugi Thordarson
// http://hugi.karlmenn.is/


On 29.11.2008, at 23:35, Randy Wigginton wrote:

I am making progress on my application, though I'm certain my questions do not imply such.

I have a css definition:
#globalNav{
background-image:  url(glbnav_background.gif);
}

However, when deploying, the url generated is something like:
http://192.168.1.111:49599/cgi-bin/WebObjects/glbnav_background.gif

RATHER than:
http://192.168.1.111:49599/cgi-bin/WebObjects/SIAM.woa/_wr_/wodata=/Users/randy/workspace/SIAM/build/SIAM.woa/Contents/WebServerResources/glbnav_background.gif

What flag or other magic do I need to make this work correctly?


_______________________________________________ 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: 
 >Images in css files (From: Randy Wigginton <email@hidden>)
 >Re: Images in css files (From: Hugi Thordarson <email@hidden>)

  • Prev by Date: Re: Images in css files
  • Next by Date: Re: Images in css files
  • Previous by thread: Re: Images in css files
  • Next by thread: Re: Images in css files
  • Index(es):
    • Date
    • Thread