Loading ...
Sorry, an error occurred while loading the content.

Javascript Events.

Expand Messages
  • peterzorbas
    Hi everyone. Has anyone ever experienced this. some_class = function (params){ var self = this; this.element.onmousedown = function(e){ return
    Message 1 of 1 , Jun 30, 2006
    • 0 Attachment
      Hi everyone.

      Has anyone ever experienced this.

      some_class = function (params){
      var self = this;
      this.element.onmousedown = function(e){ return
      this.dosomething(self, e); }

      some_class.prototype = {

      dosomething : function(e) {
      e=e||window.event;
      e.xPos = some_value; // causes error e has no properties.
      }

      that is a rough idea of my code in a ext js file, and creating class
      in html file. i get the error but not sure why? help pls?

      much thanks
    Your message has been successfully submitted and would be delivered to recipients shortly.