WAUploadTest IE6 & IE7 Bug

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

WAUploadTest IE6 & IE7 Bug

dirk newbold
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:
  [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
Reply | Threaded
Open this post in threaded view
|

Re: WAUploadTest IE6 & IE7 Bug

Philippe Marschall
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
Reply | Threaded
Open this post in threaded view
|

Re: WAUploadTest IE6 & IE7 Bug

dirk newbold
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]>:
> 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


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: WAUploadTest IE6 & IE7 Bug

Bany, Michel
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: [hidden email] [mailto:[hidden email]] 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 <[hidden email]> wrote:
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


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: WAUploadTest IE6 & IE7 Bug

Bany, Michel
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
Reply | Threaded
Open this post in threaded view
|

Re: WAUploadTest IE6 & IE7 Bug

dirk newbold
Awesome Thanks heaps,
 
Dirk

 
On 5/7/07, Bany, Michel <[hidden email]> wrote:
 >  Can't seem to find 'HttpAdapter', 'keepAlive' or anything similar.
 
This does not exist in VW
 

_______________________________________________
Seaside mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside