[Seaside] WAUploadTest IE6 & IE7 Bug
Bany, Michel
mbany at cincom.com
Mon May 7 10:39:22 UTC 2007
Hi Dirk,
This issue is caused by a bug in IE6 and IE7 where an optional space in
some HTTP response headers is required by IE6 and IE7, but not by other
browsers.
This is a known issue that has been fixed in the recent versions that
were published in the public Store repository. So, I am assuming that
you loaded Seaside from the parcels that are shipped on the distribution
CD.
It has also been fixed in VisualWorks 7.5
In case you want to stay with 7.4 and with the parcels, you will need
the following fixes that are meant to keep IE6 and IE7 happy.
VisualWave.Response
writeCookies: aStream
self cookies isNil ifTrue: [^self].
self cookies
do:
[:cookie |
cookie isNil
ifFalse:
[aStream
nextPutAll:
'Set-Cookie: ' , "A space needed by IE sometimes"
"(self headerEncode:" cookie valueString")";
crlf]].
VisualWave.MessageHeaders
sendOver: aStream
self do: [ :header |
aStream
nextPutAll: header key;
nextPutAll: ': '. "A space is needed by IE for some headers"
aStream nextPutAll:
(self headerEncode: header).
aStream crlf.
].
HTH
Michel.
________________________________
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of dirk
newbold
Sent: lundi, 7. mai 2007 11:09
To: Seaside - general discussion
Subject: Re: [Seaside] WAUploadTest IE6 & IE7 Bug
I am running Visual Works 7.4.1 Non Commercial.
Can't seem to find 'HttpAdapter', 'keepAlive' or anything
similar.
I have Seaside and Visual Wave Loaded.
Cheers,
Dirk
On 5/7/07, Philippe Marschall <philippe.marschall at gmail.com>
wrote:
2007/5/7, dirk newbold <dirkdirk at gmail.com>:
> Hi,
>
> I am having a problem with WAUploadTest in IE6 and IE7
(it works fine in
> Firefox).
> The browse button works fine but upon pressing the
submit button the browser
> goes to the default 'The page cannot be display'
webpage.
> The file is able to be passed to a Smalltalk variable
but then (I'm
> guessing) the render falls over as it doesn't seem to
be passed an action
> and I guess doesn't know what to do? Does anyone have
a solution?
Do you run on Squeak?
If yes, does disabling keep-alive help?
you can disable keep-alive in Kom with:
HttpAdapter keepAlive: false
Cheers
Philippe
> WAUploadTest:
> renderContentOn: html
> html heading: 'Upload File'.
>
> html attributeAt: 'enctype' put:
'multipart/form-data'.
> html form: [
> html fileUploadWithCallback: [:f | file := f].
> html submitButton.
> ].
>
> file ifNotNil:
> [html anchorWithDocument: file contents mimeType:
file contentType
> fileName: file fileName text:file fileName.
> html preformatted: file contents contents].
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
>
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
_______________________________________________
Seaside mailing list
Seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20070507/3e03e23c/attachment.htm
More information about the seaside
mailing list