• 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: HTML Design question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTML Design question


  • Subject: Re: HTML Design question
  • From: Jean-François Veillette <email@hidden>
  • Date: Fri, 17 Dec 2004 08:54:51 -0500

If you want to keep static references to images, these images will have to be on your webserver at the path specified in the html.

So to keep this code :
<td valign="top" width="16" background="graphics/login/left.gif">

for exemple, on OS-X (default config, no virtual host), you need on your web server document's root directory :
/Library/WebServer/Document/graphics/login/left.gif


Obviously if you are running your app in development mode (direct-connect mode), you wont see those static images as those url will be handled by the wo-app which won't know anything about these.

If you want to develop and still see these static url, you have to go through the webserver.
In your browser, instead of :
http://localhost:5588/cgi-bin/WebObjects/MyApp.woa/
use (make sure you have apache running) :
http://localhost/cgi-bin/WebObjects/MyApp.woa/-5588/


this will go through the webobjects adaptor, that way, static url will be resolved as they should on development.
You do not need to add the images to the webserver resources. Elements added to the webserver-resources will be available to the woresourcemanager, so that WOImages and friends can find their images path. If you do not want to have WOImages and friends, then you do not need to have the images to the webserverresources.


The fact that the images are in webserver resources mean that they are available at :
/WebObjects/MyWoApp.woa/WebServerResources/...
You can staticaly construct your url accordingly (not recommended), but that's not how it was designed to be used.


Look at the doc for WOResourceManager, it's an utility class that (among other things) provide url path for resources under the control of the woapp. If you want the ressources controled by the app, then this is the object to look for in order to get correct url. If you do not want the resources under wo control, then you have to understand html/url/apache.

- jfv

I have a question about image,css.. references in a html file.
A designer have done some pages for me. I want to use it and change some text filed wth WO components.
To have a nice page, the designer used a lot of table with backgound like ths
<td valign="top" width="16" background="graphics/login/left.gif">


What I would like to do, is copy/paste the html code into webObject builder ,change the text field that I need to change and that's it. I don't want to change all 'background="graphics/login/left.gif"' to a WOImage . How can I do that? I have added the graphics directory to my WebServer Resources, so I have it in <app>.woa/Contents/Resources but it does not work, the dynamic page is without images.
Any ideas?


Thank you
Sébastien

_______________________________________________ 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: 
 >HTML Design question (From: Sébastien Gruhier <email@hidden>)

  • Prev by Date: Error deploying WOApp
  • Next by Date: Re: HTML Design question
  • Previous by thread: Re: HTML Design question
  • Next by thread: Error deploying WOApp
  • Index(es):
    • Date
    • Thread