users@grizzly.java.net

Re: Hidden frame sample does not work with Firefox and Opera

From: OlekG <olekg_at_pbpolsoft.com.pl>
Date: Thu, 24 Sep 2009 19:21:42 -0700 (PDT)

Hello,

Thank you for your answer.

I have already solved the problem by adding the following piece of code :

              if( userAgent.indexOf("WebKit") == -1 ) {
                        //for ie, firefox and opera
                        response.setContentType("");
                } else {
                        //for chrome and safari
                        response.setContentType("multipart/x-mixed-replace");
                }

see :

http://stackoverflow.com/questions/169258/is-http-streaming-comet-possible-in-safari

with best regards Olek
-- 
View this message in context: http://www.nabble.com/Hidden-frame-sample-does-not-work-with-Firefox-and-Opera-tp25531333p25605185.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.