[Seaside] Re: Scripaculous toggle

Lukas Renggli renggli at gmail.com
Mon Jan 7 14:25:51 UTC 2008


> > It's not the best solution, i think (component is updated even when
> > hidding), but works... :)
>
> It is possible to make a XHR with no answer? I'm not interested in the
> response content, by now SURequest does the job,

HTTP always expects an answer for a request, this is the same for XHR.
Since XHR is asynchronous and since SURequest does not associate any
JavaScript handlers any data coming back is just ignored.

> but answers a lot of
> content (mostly html headers). What is the specific class of the
> technique to achieve this objective?

What content? There is something wrong with you setup.

In Squeak with Kom it answers:

      HTTP/1.1 200 OK
      Date: Mon, 07 Jan 2008 15:17:41 GMT
      Connection: close
      Server: Comanche/6.2 (Mac OS)
      Cache-Control: no-cache
      Content-type: text/html;charset=utf-8
      Content-length: 0

A few fields could be removed for sure, but otherwise and as far as I
know this is sort of a minimal valid response.

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the seaside mailing list