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?
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: _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
2007/5/7, dirk newbold <[hidden email]>:
> 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 > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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 <[hidden email]> wrote:
2007/5/7, dirk newbold <[hidden email]>: _______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
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.
_______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
In reply to this post by dirk newbold
> Can't seem to find
'HttpAdapter', 'keepAlive' or anything similar.
This does not exist in VW
_______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Awesome Thanks heaps,
Dirk
On 5/7/07, Bany, Michel <[hidden email]> wrote:
_______________________________________________ Seaside mailing list [hidden email] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside |
Free forum by Nabble | Edit this page |