Giter Site home page Giter Site logo

Pb with R33 about smt2 HOT 15 CLOSED

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Pb with R33

from smt2.

Comments (15)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
If I use the src version of the js script
smt-aux-2.0.0.js

it seems to be on line 307 
uncaught exception: [Exception... "Could not convert JavaScript argument" 
nsresult:
"0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame ::
http://127.0.0.1/WEB/SCRIPTS_VRAC/love/smt2/core/js/smt-aux-2.0.0.js :: 
anonymous ::
line 307" data: no]

 addEvent: function(obj, type, fn) 
  {
    if (obj.addEventListener) {
      obj.addEventListener(type, fn, false);  /************ this line *******/
    } else if (obj.attachEvent) {
        obj["e"+type+fn] = fn;
        obj[type+fn] = function(){ obj["e"+type+fn](window.event); };
        obj.attachEvent("on"+type, obj[type+fn]);
    }
  },

Original comment by [email protected] on 5 Feb 2010 at 9:14

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
[deleted comment]

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Hello, 

Please tell wich OS and Browser (name + version) you are having problems with; 
and it
would be great if you could provide an URL to isolate those error(s).

For using the src versions of JavaScript core files, you must edit
/admin/sys/define.php and change line 7 -> define ('JS_PATH', 
ABS_PATH."core/js/");
for this one -> define ('JS_PATH', ABS_PATH."core/js/src/");

Regards,
Luis

Original comment by [email protected] on 5 Feb 2010 at 11:31

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Yes sorry,
Os : Win XP SP2
browser : Firefox 3.5.7
with firebug 1.5.0

I cann't give you a test URL because I'm testing on my localhost ... 
woul you want a screenshoot ? (and which screenshoot ?)
I can sent it to you by email ;)

++
Nans

Original comment by [email protected] on 5 Feb 2010 at 1:15

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
I try something

If I load only the script Firebug don't return error
<script type="text/javascript" 
src="smt2/core/js/src/smt-aux-2.0.0.js"></script>  

If I load the 2 scripts
<script type="text/javascript" 
src="smt2/core/js/src/smt-aux-2.0.0.js"></script>  
 <script type="text/javascript" src="smt2/core/js/smt-record.min.js"></script>

the error appears
????
don't understand

Original comment by [email protected] on 5 Feb 2010 at 1:41

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
hellow
I send you an email with the link where you can test this bug

regards

Original comment by [email protected] on 9 Feb 2010 at 2:53

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
I don't see the link to test the bug.

Again, for using the src versions of JavaScript core files, you must edit
/admin/sys/define.php and change line 7 -> define ('JS_PATH', 
ABS_PATH."core/js/");
for this one -> define ('JS_PATH', ABS_PATH."core/js/src/");

Original comment by [email protected] on 9 Feb 2010 at 5:17

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
I've sended an email on your gmail with the link.
did you recieve it ?

Original comment by [email protected] on 9 Feb 2010 at 5:57

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Hello
It semms it is a real problem with this function

addEvent: function(obj, type, fn) 
  {
    if (obj.addEventListener) {
      obj.addEventListener(type, fn, false);   /**** FIREBUG ERROR ON FIREFOX :
uncaught exception: [Exception... "Could not convert JavaScript argument" 
nsresult:
"0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame ::
http://127.0.0.1/WEB/SCRIPTS_VRAC/love/smt2/core/js/src/smt-aux-2.0.0.js :: 
anonymous
:: line 307" data: no] **********/
    } else if (obj.attachEvent) {
        obj["e"+type+fn] = fn;
        obj[type+fn] = function(){ obj["e"+type+fn](window.event); };
        obj.attachEvent("on"+type, obj[type+fn]);
    }
  },

--------
ON FIREFOX 
obj.addEventListener(type, fn, false);   

/**** FIREBUG ERROR : uncaught exception: [Exception... "Could not convert 
JavaScript
argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS 
frame ::
http://127.0.0.1/WEB/mysite/smt2/core/js/src/smt-aux-2.0.0.js :: anonymous :: 
line
307" data: no] **********/
--------------------------------------

ON IE (line 310): 
obj[type+fn] = function(){ obj["e"+type+fn](window.event); };

/***** compaioonjs ( http://www.my-debugbar.com/wiki/CompanionJS/HomePage ) 
This object does not support this property or method ******/

------------------
which browser did you use for your developpement ?
did you have this errors ?

regards,
Nans

Original comment by [email protected] on 10 Feb 2010 at 8:40

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
may be a trail to follow

http://groups.google.fr/group/mozilla.dev.platform/browse_thread/thread/22d4e8d8
3c1a9d8e?pli=1

-------

I try something
just add this  alert (obj+' '+type+' '+fn);
like that

  addEvent: function(obj, type, fn) 
  {
  alert (obj+' '+type+' '+fn);
    if (obj.addEventListener) {
      obj.addEventListener(type, fn, false);
    } else if (obj.attachEvent) {
        obj["e"+type+fn] = fn;
        obj[type+fn] = function(){ obj["e"+type+fn](window.event); };
        obj.attachEvent("on"+type, obj[type+fn]);
    }
  },

-------
the exception is on the "focus" event initialization...
function seems undefined ...



Original comment by [email protected] on 10 Feb 2010 at 8:46

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
I try a little Hack ... no errors ... but no focus ...

 addEvent: function(obj, type, fn) 
  {
 // alert (obj+' '+type+' '+fn);
  if (type != 'focus') {
    if (obj.addEventListener) {
      obj.addEventListener(type, fn, false);
    } else if (obj.attachEvent) {
        obj["e"+type+fn] = fn;
        obj[type+fn] = function(){ obj["e"+type+fn](window.event); };
        obj.attachEvent("on"+type, obj[type+fn]);
    }
    }
  },

Original comment by [email protected] on 10 Feb 2010 at 8:51

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
I think I've fixed this bug
In smt-record-2.0.0.js

add the function continueRecording
for example line 130

 continueRecording: function() 
    {
      smtRec.paused = false;
    },

this fix the bug... But I'm not sure that the insctruction smtRec.paused = 
false;
is good...

What did you think about that ?

Nans

Original comment by [email protected] on 10 Feb 2010 at 11:05

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
Wow! My mistake; there is a function called resumeRecording, and should be
continueRecording -- this is the callback assigned to the focus event. That 
function
does exactly the line you tried (smtRec.paused = false;)

I've just updated the SVN.

Thank you for your testing!

Original comment by [email protected] on 10 Feb 2010 at 2:44

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024

Original comment by [email protected] on 10 Feb 2010 at 3:13

  • Changed state: Fixed

from smt2.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 17, 2024
ok, excellent :) No pb ;)

Original comment by [email protected] on 10 Feb 2010 at 4:48

from smt2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.