• Dhanavel
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
I am trying the following code in an OnClick SControl

Code:
{!requireScript("/soap/ajax/11.1/connection.js")}

sforce.debug.trace = true;
sforce.debug.log("Hello World");

and I am getting a browser error which says "log is not defined"

When I use Firebug to inspect connections.js I see the following code ...

Code:
sforce.internal.Debug = function() {

...

this.log = function(str) {
  this.println(str, "print");
}

sforce.debug = new sforce.internal.Debug();

 I am confused. Shouldn't this be working? This stopped working in an old SControl I built, so I am sure something has changed.

Any help would be appreciated

John