[Seaside] Content-Type

Yar Hwee Boon hboon at motionobj.com
Tue Mar 8 16:19:45 CET 2005


On 08-Mar-05, at PM 11:04, Daniel Salama wrote:

> Hello again,
>
> How can I specify the content-type of what I'm rendering? For example,  
> I'd like to generate a PDF document on the fly and return that to the  
> user or may be export a report to a CSV-like format, or if I want to  
> use the javascript "command" XMLHttpRequest, it actually expects to  
> receive a 100% compliant XML response.

You can browse WAHtmlRenderer>>imageWithForm: and see  
http://www.motionobj.com/seasidefaq/ 
DisplayingAnImageThatWasStoredAsBytes for a way to generate a URL for  
your document with the right content-type.

--
HweeBoon
MotionObj
(65) 6764-9774



More information about the Seaside mailing list