Skip to main content
7 events
when toggle format what by license comment
Oct 9, 2015 at 19:42 comment added VarunC Yes thats right, i hid some other code for simpliciry but yes i need to call the function in Helper recursively.
Oct 9, 2015 at 19:17 comment added Moshe Karmel Hmmm interesting, maybe ask this as it's own question. Also it seems like startClock is recursively calling itself. Is this what you are trying to do?
Oct 9, 2015 at 19:03 comment added VarunC Thanks for comment here @moshe .. but I tried that and it worked fine but when I sue it to calla function recursively it freezes the browser window. Don't know why, same function runs fine in normal browser JS or visualforce page. My function looks like this: startClock : function() { setTimeout( this.startClock() , 1000); } also if I put Double Quotes around the function call, it does not recognize the function at all and throws error that function is not defined for this - startClock : function() { setTimeout( "this.startClock()" , 1000); }
Oct 9, 2015 at 19:02 comment added Moshe Karmel And this: salesforce.stackexchange.com/questions/82149/…
Oct 9, 2015 at 18:54 comment added Moshe Karmel I believe you can use this.functionName(). See this : developer.salesforce.com/forums/?id=906F00000005FHGIA2
Oct 9, 2015 at 18:07 comment added VarunC is there a way I can call a Helper function inside another helper function? Because I tried calling the function defined in helper.js and it is returning that function is not defined error in js console.
Sep 24, 2015 at 12:55 history answered Moshe Karmel CC BY-SA 3.0