Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Chrome Frame Detection doesn't work
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rich Bradshaw  
View profile  
 More options May 2 2010, 4:42 am
From: Rich Bradshaw <rich.brads...@gmail.com>
Date: Sun, 2 May 2010 01:42:23 -0700 (PDT)
Local: Sun, May 2 2010 4:42 am
Subject: [google-chrome-frame:1118] Chrome Frame Detection doesn't work
I've copied the demo code into a jsbin document here: http://jsbin.com/atifu4

Rather than prompting the user to install CF  (or whatever it's meant
to do!), it just comes up with a variety of errors in IE:
"'document.body' is null or not an object", or "'null' is null or not
an object".

Any ideas? I've tried in IE8 only currently.

--
You received this message because you are subscribed to the Google Groups "Google-chrome-frame" group.
To post to this group, send email to google-chrome-frame@googlegroups.com.
To unsubscribe from this group, send email to google-chrome-frame+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-chrome-frame?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Russell  
View profile  
 More options May 4 2010, 2:39 pm
From: Alex Russell <slightly...@google.com>
Date: Tue, 4 May 2010 11:39:15 -0700
Local: Tues, May 4 2010 2:39 pm
Subject: Re: [google-chrome-frame:1119] Chrome Frame Detection doesn't work
IE doesn't like trailing commas on the last element in an object
literal. You have:

   CFInstall.check({
     mode: "overlay",
   });

Which should just be:

   CFInstall.check({
     mode: "overlay" // note the lack of comma
   });

Regards

--
You received this message because you are subscribed to the Google Groups "Google-chrome-frame" group.
To post to this group, send email to google-chrome-frame@googlegroups.com.
To unsubscribe from this group, send email to google-chrome-frame+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-chrome-frame?hl=en.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JPSykes  
View profile  
 More options Jun 11 2010, 3:57 pm
From: JPSykes <sykes....@gmail.com>
Date: Fri, 11 Jun 2010 12:57:01 -0700 (PDT)
Local: Fri, Jun 11 2010 3:57 pm
Subject: Re: Chrome Frame Detection doesn't work
I'm getting a similar bug.

This is in my head:

    <script type="text/javascript" src="http://ajax.googleapis.com/
ajax/libs/chrome-frame/1/CFInstall.js"></script>

    <style>
     /*
      CSS rules to use for styling the overlay:
        .chromeFrameOverlayContent
        .chromeFrameOverlayContent iframe
        .chromeFrameOverlayCloseBar
        .chromeFrameOverlayUnderlay
     */
    </style>

    <script>
     CFInstall.check({
       mode: "overlay"
     });
    </script>

Hit it with IE8 and I'm getting:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
4.0)
Timestamp: Fri, 11 Jun 2010 19:56:39 UTC

Message: 'null' is null or not an object
Line: 248
Char: 7
Code: 0
URI: http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.js

On May 4,
2:39 pm, Alex Russell <slightly...@google.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
JPSykes  
View profile  
 More options Jun 11 2010, 4:21 pm
From: JPSykes <sykes....@gmail.com>
Date: Fri, 11 Jun 2010 13:21:18 -0700 (PDT)
Local: Fri, Jun 11 2010 4:21 pm
Subject: Re: Chrome Frame Detection doesn't work
Looks like it's because you have the CFinstall.check in the head tag
so it runs before the body has finished loading.

If you add the cfinstall script at the bottom of the page right above
the closing </body>  the error will go away.

On May 4, 2:39 pm, Alex Russell <slightly...@google.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sig Weber  
View profile  
 More options Jun 12 2010, 7:53 am
From: Sig Weber <siegfrie...@gmail.com>
Date: Sat, 12 Jun 2010 04:53:36 -0700 (PDT)
Local: Sat, Jun 12 2010 7:53 am
Subject: Re: Chrome Frame Detection doesn't work
On Jun 11, 10:21 pm, JPSykes <sykes....@gmail.com> wrote:

> Looks like it's because you have the CFinstall.check in the head tag
> so it runs before the body has finished loading.

Although it has been part of the HTML 4.01 standard for many years now
I am not 100% sure if all Web browser vendors have implemented it yet,
but you can defer loading script as described here:

http://www.quirksmode.org/js/placejs.html

That way you can create a reusable module for your Website, like I
did, to include it in the HEAD section of a CMS template.

Here's the slightly overhauled code example from
http://www.chromium.org/developers/how-tos/chrome-frame-getting-started:

=== code ===
<!--[if IE]>
  <script language="javascript" type="text/javascript" src="http://
ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></
script>

        <style>
        /* CSS rules to use for styling the overlay:
                .chromeFrameOverlayContent
                .chromeFrameOverlayContent iframe
                .chromeFrameOverlayCloseBar
                .chromeFrameOverlayUnderlay
        */
        </style>

        <script language="javascript" type="text/javascript" defer>
                CFInstall.check({mode: "overlay", destination: "http://
www.example.com"});
        </script>
<![endif]-->
=== code ===

Another improvement in the above code snippet is the use of an
Internet Explorer conditional comment (see
http://msdn.microsoft.com/en-us/library/ms537512%28VS.85%29.aspx) to
prevent non-IE browsers from even looking at the JavaScript which will
speed up page load for them (no check for ActiveXObject etc.).

@CF team: would be great if somebody could update the CF Developer
Guide page with this. Thanks!

Cheers,

Sig


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Russell  
View profile  
 More options Jun 13 2010, 12:53 am
From: Alex Russell <slightly...@google.com>
Date: Sat, 12 Jun 2010 21:53:31 -0700
Local: Sun, Jun 13 2010 12:53 am
Subject: Re: [google-chrome-frame:1217] Re: Chrome Frame Detection doesn't work

I added a conditional comment and an onload handler to the second
example to deal with the potential race. Let me know if you think it
can be clearer.

Regards


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sig Weber  
View profile  
 More options Jun 13 2010, 3:46 pm
From: Sig Weber <siegfrie...@gmail.com>
Date: Sun, 13 Jun 2010 12:46:54 -0700 (PDT)
Local: Sun, Jun 13 2010 3:46 pm
Subject: Re: Chrome Frame Detection doesn't work

> On Jun 13, 6:53 am, Alex Russell <slightly...@google.com> wrote:
> I added a conditional comment and an onload handler to the second
> example to deal with the potential race. Let me know if you think it
> can be clearer.

Perfect (even better than mine by using attachEvent). Thanks!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »