Ask Experts Questions for FREE Help !
Ask
    sonicseaweed's Avatar
    sonicseaweed Posts: 1, Reputation: 1
    New Member
     
    #1

    Aug 15, 2009, 01:09 PM
    This.getXY is not a function
    So I'm working on this script and I get an error I cannot understand. The script it complicated (800+ lines), but here is what it boils down to

    Code:
    var someNamespace = {
      
      getXY : function(event) {
        // do some stuff
      }
    
      where_Am_I : function(event) {
        // get coordinates
        this.getXY(event);
        // do stuff...
      }
    
      start_process : function(event) {
        this.where_Am_I(event);
        document.getElementById('foo').onmousemove = this.where_Am_I;
      }  
    
    };
    Start_process is the function that is called. The first call to getXY works fine, but then I get a "is not a function" error from Firefox and a type error from opera when I move my mouse. Notice that where_Am_I is still being registered as a function, but getXY that is called from within it complains..

    Any ideas?

Check out some similar questions!

VAV Box Function [ 2 Answers ]

Can anybody explain me how VAV works with simple sketch? Thanks

The result of increasing and decreasing function on the composite function [ 6 Answers ]

I was asked to prove the result of increasing and decreasing function on the composite function... prove that: 1- if f(X) inc & g(X) inc, foG inc 2-if F(X) inc & G(X) dec, foG dec 3- if F(X) dec & G(X) inc, fog dec 4- if f(X) dec & G(X) dec, fog inc please help me in that

Function Or Not? [ 1 Answers ]

Tell whether or not the pairing is a function Input Output 9 0 8 2 7 4 7 6 I think it is I'm just not sure it's the 2 sevens that Are really bothering me if someone can help id...

TV Out Function On [ 0 Answers ]

I've got a DVD drive and the PowerDVD 5.0 player and every time I try to watch a newer DVD, I get the error message "TV out function error", I look at the details and it says I can't play copyright protected DVD's with the TVout function enabled. The weird thing is, ALL my graphics adapters just...


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.