Not Connecting on IE6 and IE7

1 view
Skip to first unread message

jordanisip

unread,
Feb 20, 2008, 4:59:29 AM2/20/08
to Juggernaut for Rails
Hi All,

I'm having problems connecting to my Juggernaut server with IE6 and
IE7. It works perfectly on FF, Safari and any other mac browser. Has
anyone experienced anything similar to this with Juggernaut? My
configuration is the same as the default config specified in the
instructions (except that I am running on port 443) but my guess is
that it has something to do with the JavaScript?

On IE, it looks like the observers are being added after onload,
however, the flash script never returns true for connected() to
fire.

As instructed in the README, i'm calling <%= juggernaut %> in my
<head> and have<%= javascript_include_tag :defaults, :juggernaut %> in
there as well. At this point, I'm a bit lost on how to continue
debugging from here. Any insights would be great!

Thanks in advance for your help!

Jordan

Alex MacCaw

unread,
Feb 20, 2008, 5:05:07 AM2/20/08
to Juggernaut...@googlegroups.com
Are you seeing anything in the push server log when a different browser tries to connect? Does it work in FF on Windows?

jordanisip

unread,
Feb 20, 2008, 11:30:57 AM2/20/08
to Juggernaut for Rails
Hi Alex,

Thanks for the reply.

Just took a look at the logs and it looks like all the mac browsers
and windows FF all get the "New client [192.168.x.x]" message in the
logs. When I load the same page in IE7, no activity show up in the
logs. Also IE7 will hang for about 5 seconds or so after the page
loads - not sure if that is an indication of anything. Any ideas?

Thanks!

Jordan

On Feb 20, 2:05 am, "Alex MacCaw" <macc...@gmail.com> wrote:
> Are you seeing anything in the push server log when a different browser
> tries to connect? Does it work in FF on Windows?
>
> On Feb 20, 2008 9:59 AM, jordanisip <jordani...@gmail.com> wrote:
>
>
>
>
>
> > Hi All,
>
> > I'm having problems connecting to my Juggernaut server with IE6 and
> > IE7. It works perfectly on FF, Safari and any other mac browser. Has
> > anyone experienced anything similar to this with Juggernaut? My
> > configuration is the same as the default config specified in the
> > instructions (except that I am running on port 443) but my guess is
> > that it has something to do with the JavaScript?
>
> > On IE, it looks like the observers are being added after onload,
> > however, the flash script never returns true for connected() to
> > fire.
>
> > As instructed in the README, i'm calling <%= juggernaut %> in my
> > <head> and have<%= javascript_include_tag :defaults, :juggernaut %> in
> > there as well. At this point, I'm a bit lost on how to continue
> > debugging from here. Any insights would be great!
>
> > Thanks in advance for your help!
>
> > Jordan
>
> --http://www.eribium.org|http://juggernaut.rubyforge.org|http://www.aireofs.com| Skype: oldmanorhouse

Alex MacCaw

unread,
Feb 20, 2008, 11:34:13 AM2/20/08
to Juggernaut...@googlegroups.com
Are you using the latest trunk? Have you run rake juggernaut:reinstall ?
--

jordanisip

unread,
Feb 20, 2008, 1:49:44 PM2/20/08
to Juggernaut for Rails
Yep, on the latest trunk. Just reinstalled (rake
juggernaut:reinstall), restarted my servers, and refreshed my
browsers. Looks like it didn't help IE connect (All the other browsers
still work fine).

Jordan
> > > --
> >http://www.eribium.org|http://juggernaut.rubyforge.org|http://www.aireofs.com|<http://www.eribium.org%7Chttp://juggernaut.rubyforge.org%7Chttp://www...>Skype: oldmanorhouse

Ezra

unread,
Feb 20, 2008, 4:42:45 PM2/20/08
to Juggernaut for Rails
I just discovered an issue that was causing IE6/7 to not connect on
refresh or on hitting return in the address bar (it still connected on
initial load). I wonder if this is what you are seeing.

After some debugging, I saw that on successive reloads, "this.swf" was
getting set AFTER the Flash movie had already been initialized -- this
caused the call to this.swf.connect() to fail. I have only seen this
on IE6/IE7.

So, somewhere between these two lines, the Flash movie is initialized
and this.swf.connect called:

this.so.write(this.element);
this.swf = $(this.options.swf_name);

Changing references to this.swf to $(this.options.swf_name) did the
trick.

For example, try this:
if(!this.is_connected) $
(this.options.swf_name).connect(this.options.host, this.options.port);

instead of:
if(!this.is_connected) this.swf.connect(this.options.host,
this.options.port);

To be safe, I changed all references to this.swf.

Ezra

Ezra

unread,
Feb 20, 2008, 5:15:07 PM2/20/08
to Juggernaut for Rails
One additional issue/fix. The code assigned to the window load event
(see below) can introduce a problem similar to what I described
above. In this case, "juggernaut" could still be undefined when the
Flash movie tries to call methods on the object.

this.appendFlashObject();
juggernaut = this;

I switched the order of these lines and now am able to connect without
fail from IE6/7.

Ezra

Jordan Isip

unread,
Feb 20, 2008, 6:16:34 PM2/20/08
to Juggernaut for Rails
Woohoo! This worked! Additionally, I'm not experiencing the onload
lag anymore on IE7. For the record, I've only tested this on IE7.
I'll be testing it in the near future.

Thanks again Ezra!

Jordan
Reply all
Reply to author
Forward
0 new messages