Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Incorrect behavior on certain JavaScript pieces of code

  • 1 reply
  • 3 have this problem
  • 2 views
  • Last reply by cor-el

more options

-- Błąd: uncaught exception: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://domain/assets/script/movie-player-1.0.js :: VideoControlsProgressbar :: line 99" data: no]

this.Video.Video.addEventListener('pause', function(){ $ths.trackingStop(); });

-- Błąd: uncaught exception: [Exception... "An attempt was made to use an object that is not, or is no longer, usable" code: "11" nsresult: "0x8053000b (NS_ERROR_DOM_INVALID_STATE_ERR)" location: "http://domain/assets/script/movie-player-1.0.js Line: 92"] this.updateDuration = function($x)

   {
     // How many % from start we want to jump to
     var $fPercentWidth = ($x - $ths.Progressbar.offset().left) / $ths.Progressbar.width() * 100;
     $ths.Video.Video.currentTime = $ths.Video.Video.duration * $fPercentWidth / 100;
     $ths.update();
   }

Works everywhere except for Firefox (EVEN ON IE!). Nice job...

-- Błąd: uncaught exception: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: http://domain/assets/script/movie-player-1.0.js :: VideoControlsProgressbar :: line 99" data: no] this.Video.Video.addEventListener('pause', function(){ $ths.trackingStop(); }); -- Błąd: uncaught exception: [Exception... "An attempt was made to use an object that is not, or is no longer, usable" code: "11" nsresult: "0x8053000b (NS_ERROR_DOM_INVALID_STATE_ERR)" location: "http://domain/assets/script/movie-player-1.0.js Line: 92"] this.updateDuration = function($x) { // How many % from start we want to jump to var $fPercentWidth = ($x - $ths.Progressbar.offset().left) / $ths.Progressbar.width() * 100; $ths.Video.Video.currentTime = $ths.Video.Video.duration * $fPercentWidth / 100; $ths.update(); } Works everywhere except for Firefox (EVEN ON IE!). Nice job...

Modified by starach

All Replies (1)

more options

A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum. The helpers at that forum are more knowledgeable about web development issues.

You need to register at the mozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25