[Seaside] Using image tags in Seaside

Brian Brown rbb at techgame.net
Wed Sep 8 18:51:56 CEST 2004


Look here for how to set up your app to serve images off the disk: 
http://www.techgame.net/projects/Seaside/wiki/CustomRequestHandler

Brian
On Sep 8, 2004, at 9:56 AM, Andreas Nilsson wrote:

> I'm trying to get seaside to show images on a page, but I don't 
> understand where to put the files.
> Found a FAQ on the web that said something about DocumentRoot in the 
> application config, but I can't find any setting named DocumentRoot.
>
> From the FAQ (http://swiki.squeakfoundation.org/sea/15):
> Question:
>
>  So Seaside generates the HTML for my page, and I point my web browser 
> at port 8000 to get the results.
>
>  Now, how do I place an image on the page there? Just assume a <img> 
> tag for a simple case.
>
>  I create a directory on the host to serve from (let's assume 
> c:\seaside\jill.jpg for the example). How do I indicate to 
> Seaside/Comanche that is where the image resides in some sort of 
> relative URL form? And what HTML do I have to generate in my 
> components' html method to have that image served?
>
> Answer:
>
> 	• 	 There's a "Document Root" field on the config page for your app, 
> which controls where documents are served from. Set this to 
> c:\seaside.
> 	• 	 use <img src="resource/jill.jpg">  in your HTML
>
> Any ideas?
>
> /Adde_______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1628 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20040908/6b3991b5/attachment.bin


More information about the Seaside mailing list