Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 147395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:46:27+00:00 2026-05-11T08:46:27+00:00

I am using a javascript called ‘Facelift 1.2’ in one of my websites and

  • 0

I am using a javascript called ‘Facelift 1.2’ in one of my websites and while the script works in Safari 3, 4b and Opera, OmniWeb and Firefox it does not in any IE version. But even in the working browser i get the following error I cannot decipher.

Maybe in due time—with more experience in things Javascript—I will be able to but for now I thought I would ask some of you, here at SO.

The following is the error popup i get in IETester testing the page for Interet Explorer 6,7 and 8: IE Error Pop Up

The following is from the Firebug console in Firefox 3.0.6: Firebug Console Log

The website is: http://www.457cc.co.nz/index.php In case it helps you see the problem mentioned in action.

I have also looked up what line 620 corresponds to which is: ‘line 76’ is:

this.isCraptastic = (typeof document.body.style.maxHeight=='undefined'); 

which is part of this block of code (taken from the flir.js):

// either (options Object, fstyle FLIRStyle Object) or (fstyle FLIRStyle Object) ,init: function(options, fstyle) { // or options for flir style     if(this.isFStyle(options)) { // (fstyle FLIRStyle Object)         this.defaultStyle = options;     }else { // [options Object, fstyle FLIRStyle Object]         if(typeof options != 'undefined')             this.loadOptions(options);          if(typeof fstyle == 'undefined') {             this.defaultStyle = new FLIRStyle();         }else {             if(this.isFStyle(fstyle))                 this.defaultStyle = fstyle;             else                 this.defaultStyle = new FLIRStyle(fstyle);         }     }      this.calcDPI();      if(this.options.findEmbededFonts)         this.discoverEmbededFonts();      this.isIE = (navigator.userAgent.toLowerCase().indexOf('msie')>-1 && navigator.userAgent.toLowerCase().indexOf('opera')<0);     this.isCraptastic = (typeof document.body.style.maxHeight=='undefined');      if(this.isIE) {         this.flirIERepObj = [];         this.flirIEHovEls = [];         this.flirIEHovStyles = [];         } } 

The whole script is also available on my server: http://www.457cc.co.nz/facelift-1.2/flir.js

I just don’t know where to start looking for the error, especially since it only affects IE but works in the rest. Maybe you guys have an idea. I would love to hear them.

Thanks for reading. Jannis

PS: This is what Opera’s error console reports:

JavaScript - http://www.457cc.co.nz/index.php Inline script thread Error: name: TypeError message: Statement on line 620: Cannot convert undefined or null to Object Backtrace:   Line 620 of linked script http://www.457cc.co.nz/facelift-1.2/flir.js                     document.body.appendChild(test);   Line 70 of linked script http://www.457cc.co.nz/facelift-1.2/flir.js             this.calcDPI();   Line 2 of inline#1 script in http://www.457cc.co.nz/index.php             FLIR.init(); stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have Stacktrace' 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:46:27+00:00Added an answer on May 11, 2026 at 8:46 am

    I agree with tvanfosson – the reason you’re getting that error is quite likely because you’re calling init() before the page is done loading, so document.body is not yet defined.

    In the page you linked, you should move the following code to the bottom of the page (just before the closing html tag:

    <script type='text/javascript'>     FLIR.init({ path: 'http://www.457cc.co.nz/facelift-1.2/' });     FLIR.auto(); </script> 

    Even better, you should attach the initialization to the document’s ready event. If you do it this way, there is no need to even move your javascript to the bottom of the file. Using jquery:

    $(document).ready( function(){     FLIR.init({ path: 'http://www.457cc.co.nz/facelift-1.2/' });     FLIR.auto(); }); 

    More on jquery’s document.ready event »

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using javascript for a while, but have never learned the language past
I'm using a JavaScript library called phpjs The goal is to create functions that
I'm using JavaScript to access a ScriptService method called GetPerson(). The problem is that
Without using Javascript, is there a way to make a CSS property toggle on
I'm using JavaScript to hide an image and show some text thats hidden under
I need to edit (using javascript) an SVG document embedded in an html page.
I am using JavaScript and jQuery. My main file has My.js and Ajax. My.js
Ive no problems using Javascript to read the rows of a telerik radgrid component
I am using JavaScript, jQuery and PHP. How do I limit the JavaScript function
I've been using Javascript's Date for a project, but noticed today that my code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.