[Seaside] Seaside text/plain output problems

Philippe Marschall philippe.marschall at gmail.com
Sat Jun 2 14:46:08 UTC 2007


2007/6/2, David Goehrig <dave at nexttolast.com>:
> Philippe Marschall wrote:
> > Can you elaborate a bit?
> Sure  I need 'text/plain' because there's a flash application that is
> importing a JSON document, that I'd like to generate with Seaside in
> order to maintain the session state, etc.  I realize that I can subclass
> WASession and attack the problem from there and create a whole new set
> of Seaside-Document classes for this.  But was hoping not to have to
> rewrite half of Seaside in the process.
> > That's not a  javascript load preamble. That's a full html page
> > showing 'testing 1 2 3' and the Seaside toolbar. I don't see the
> > problem.
>
> I don't want it to render anything but the 'testing 1 2 3', I tried to
> override with callbacks, but I can't seem to get one registered that
> does the job.

Do you just want to return the string 'testing 1 2 3' as 'text/plain'
or a whole html document around it. The former is simple:

self session returnResponse: (WAResponse document: 'testing 1 2 3'
mimeType: 'text/plain')

Cheers
Philippe

> Dave
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the Seaside mailing list