SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2007
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    definition problem

    This is an excerpt from eskvalleyenergy.org/hptest.htm

    <script type="text/javascript" src="hp.js"></script>
    <script type="text/javascript" src="core.js"></script>

    </head>

    <body onLoad="startSS();stopSS();runSS();prevSS()">

    This is an except from eskvalleyenergy.org/hp.js
    Both files are in the same directory

    startSS: function() {
    t = setTimeout("runSS(" + f.currSlide.value + ")", 1 * 1);
    },

    Why do I get an error startSS is not defined? Line 1 htest.htm

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The startSS() function is defined as part of another object, named heat. Therefore, when calling the function you must specify the object, too: heat.startSS();.
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •