DebugBar Forums
 
 HOME 
 DOWNLOAD 
 BUY 
 DOC / WIKI 
 FORUM 
 CONTACT 
Stay tuned : rss feed

Forum Home


advanced search


You are not logged in.

Announcement

When reporting a problem or a bug :
* Provide your OS version (INCLUDING service pack) and installed IE version.
* Provide your IETester version
* Provide the IE Tab version opened to generate the problem
* Provide a test case with a sample url or sample code to reproduce the problem
* Provide a step by step explanation on how to reproduce the problem.
* If needed provide additional information.

Thanks.

#1 2009-10-03 22:47:59

Emil G.
New member
Registered: 2009-09-25
Posts: 7

using 'apply' method on console.log()

Hi

I'm trying to use the 'apply' method on 'console.log()'. It works perfectly on FF/Firebug but not on Companion.JS with IE (tested in IE6 and IE8).

Example :
console.log.apply(this,['log : first part ','and second part of the log']);

Error returned by IE :
Cet objet ne gère pas cette propriété ou cette méthode

Is it normal ?

It seems that IE refuses the usage of 'apply' and 'call' method on some native functions (for example alert()), but works well on user defined functions. I haven't found the explanation on the net. Maybe somebody knows why.
Anyway, console.log() has the same error as these native functions.

Thanks for any help or explanation.

Emil

Offline

 

#2 2009-10-03 22:56:55

fabrice
DebugBar Support
From: San Francisco, CA, USA
Registered: 2007-11-08
Posts: 1182
Website

Re: using 'apply' method on console.log()

Hi,

This is not supported so far.

Offline

 

#3 2009-10-04 18:36:48

fabrice
DebugBar Support
From: San Francisco, CA, USA
Registered: 2007-11-08
Posts: 1182
Website

Re: using 'apply' method on console.log()

Hi,

I'm working on the "apply" method for all of the "console" object methods.

It should come soon...

Offline

 

#4 2009-10-05 19:53:18

fabrice
DebugBar Support
From: San Francisco, CA, USA
Registered: 2007-11-08
Posts: 1182
Website

Re: using 'apply' method on console.log()

Hi,

Companion.JS has been improved and v0.5.3 have now "apply" methods for all "console" functions.

Offline

 

#5 2009-10-07 15:45:45

Emil G.
New member
Registered: 2009-09-25
Posts: 7

Re: using 'apply' method on console.log()

Thanks,

that's a great and useful  job for all of us !

Emil

Offline

 

#6 2010-09-08 03:10:16

Emil G.
New member
Registered: 2009-09-25
Posts: 7

Re: using 'apply' method on console.log()

I come back to you to report another problem linked to the same subject :

if I do : var LOG=console.log
then 'LOG.apply' works but 'LOG()' doesn't work (tested in IE7)

Can you confirm ? Will you add any modification to correct it ?

moreover, I also noticed that console.log.call() doesn't work. Maybe both problems are linked.

Thanks for your answer

Emil

Offline

 

#7 2010-09-14 14:57:53

fabrice
DebugBar Support
From: San Francisco, CA, USA
Registered: 2007-11-08
Posts: 1182
Website

Re: using 'apply' method on console.log()

You're right. Working on it...

Offline

 

#8 2010-09-15 02:58:27

fabrice
DebugBar Support
From: San Francisco, CA, USA
Registered: 2007-11-08
Posts: 1182
Website

Re: using 'apply' method on console.log()

Hi,

I just released Companion.JS v0.5.5 which adds "call" method and "direct call" feature to console.* methods.

Offline

 

#9 2010-09-22 06:56:44

Emil G.
New member
Registered: 2009-09-25
Posts: 7

Re: using 'apply' method on console.log()

Thanks very much. I will update and check it.

Offline

 

#10 2011-06-06 23:11:34

Gallamore
New member
Registered: 2011-06-06
Posts: 1

Re: using 'apply' method on console.log()

I'm working on the "apply" method for all of the "console" object methods.ipad2 keyboard cases ipad 2 keyboard Bluetooth ipad 2 keyboard

Offline

 

#11 2012-01-13 15:45:27

Recheal01
New member
Registered: 2011-07-25
Posts: 1

Re: using 'apply' method on console.log()

Hey, do you love cooking. Well, visit this site www.gourmandia.fr where you can find easy online recipes. Check it out! Thanks


Gourmet recipe
Gourmet Recipe is the place to find the tastiest, healthiest gourmet recipes. Watch videos of great chefs preparing meals, find easy beginner dishes, and more.

Offline

 

Partners : Debugbar | Mobilier de bureau | Debugbar Wiki | IEForge | Lampes design | La fourmi créative