Hi there,
We need to change some js script based on our business need. However, when I review the code, there are functions can be called directly and I can't find the definition of these functions, for example, setMaxProgress(). So I wonder where I can find the diefinition of thoes functions?
Thanks in advance!
XL
Solved! Go to Solution.
Views
Replies
Total Likes
Hello,
setMaxProgress() is a core method we expose to JS server engine and we use to manage progress bar (I.e. when your install a package for example)
It takes a integer as input and return nothing
It seems we use it in following OOTB campaign libs :
CAUTION : Such methods are not publicly exposed and we can deprecate or remove them at any moment. This is the main reason why we do not document them. All publicly supported methods and function are documented in the public JS API here
Hope it will help
Hi XL,
You can find all ACC functions in the API documentation.
If not, it's probably a local function used in one of the OOTB JS libraries
Views
Replies
Total Likes
Thanks David,
Actually, I didn't find the definition of function
setMaxProgress()
from the document you sent. And from the url here, I can see the function. And I can't find it from our javascript libraries either.
Thanks again for your help
Views
Replies
Total Likes
it's a jssp function
Views
Replies
Total Likes
Hi David,
Thanks for your reply. But I still can't find it in js of jssp libraries. Just curious where this function defined.
Thanks for your help
Views
Replies
Total Likes
Hi @xliu ,
The setMaxProgress() seems to be a custom function. Are you using any libraries in your code? If there are any loadLibrary() at the beginning of the code, you may check inside those js code whether there is a definition for the function you are looking for.
If you are using this in an HTML, then check the scripts that are loaded in the HTML and see if you could find the definition.
Views
Replies
Total Likes
Hi Kris,
Thanks for your reply!
Actually there is no loadLibrary(), the function just can be called and works like this blog said. And I didn't find the defination of the function in ACC js and jssp libraries or files.
Thanks
Views
Replies
Total Likes
Hello,
setMaxProgress() is a core method we expose to JS server engine and we use to manage progress bar (I.e. when your install a package for example)
It takes a integer as input and return nothing
It seems we use it in following OOTB campaign libs :
CAUTION : Such methods are not publicly exposed and we can deprecate or remove them at any moment. This is the main reason why we do not document them. All publicly supported methods and function are documented in the public JS API here
Hope it will help
Hi Chris,
That makes sense now.
Thank you very much for your help! Very appreciated.
Xihao
Views
Replies
Total Likes