Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Ray

ReferenceError: TimelineLite is not defined

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Trying to get TimelineLite to work but receive the following error: ReferenceError: TimelineLite is not defined.  Here's my script:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <script type="text/javascript" src="../assets_shared/scripts/jQuery/jquery-1.7.2.js"></script>
        <script type="text/javascript" src="../assets_shared/scripts/jQuery/jquery.fancybox-1.3.4.js"></script>
        <script type="text/javascript" src="../assets_shared/scripts/gsap/TimelineLite.min.js"></script>

        <script type='text/javascript'>
        <!--
            // Set all navigation switches to false on page entry
            parent.resetNavSwitch();

            // Set Navigation switch(es) for this page
            parent.bIsMAIPage = true;
            parent.nInteractions = 6;
            parent.sReqClick = 'a,b,c,d,e,f';

//alert("TimelineLite.version = " + TimelineLite.version);
            var tl = new TimelineLite();

 

The error triggers on the last line.  I'm using:

 

/*!
 * VERSION: 1.11.0
 * DATE: 2013-10-21
 * UPDATES AND DOCS AT: http://www.greensock.com
 *
 * @license Copyright © 2008-2013, GreenSock. All rights reserved.
 * This work is subject to the terms at http://www.greensock.com/terms_of_use.html or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 *
 * @author: Jack Doyle, jack@greensock.com
 */

 

downloaded this morning.  No 404 errors   Firebug response header shows:

 

Accept-Ranges bytes Content-Encoding gzip Content-Length 4224 Content-Type application/x-javascript Date Fri, 06 Dec 2013 19:11:18 GMT Etag "0ccd7ee38e6ce1:0" Last-Modified Wed, 20 Nov 2013 21:39:04 GMT Server Microsoft-IIS/7.5 Vary Accept-Encoding X-Powered-By ASP.NET

 

Any reasons why I'm getting this error?

 

Thanks, Ray

Link to comment
Share on other sites

Hello and welcome to the GreenSock Forums.

 

So we can better help you, can you please make a limited codepen or jsfiddle with your issue so we can see what your HTML, JS, and CSS look like in context.

 

See the Pen by pen (@pen) on CodePen

http://jsfiddle.net/

 

Or if you have a link to your site or web page that is throwing that error.

 

It will help alot in helping you!

 

Thx :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×