Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Inside the "Execute JavaScript" action, I can use ccbSetCopperCubeVariable and ccbGetCopperCubeVariable to create global root variables, that is GREAT ! But creating a function inside the "Execute JavaScript" action does not make that function "callable" from other "Execute JavaScript" actions, it will simply say function xxx is not defined. How do you make a global function in Coppercube ? |
||||
|
Try window.fun=function(){console.log(123)} |
||||
|
That is an absolutely INGENIOUS way ! Access the DOM directly ! That is so cool ! Wait...I might as well use this method to create variables instead of using ccbSetCopperCubeVariable which only holds strings and numbers !!!! This is INGENIOUS ! |
|