I am looping through some code. When i call a folder level java script to add a watermark, the loop does not complete more than one iteration. I have tried using a trusted function to make the call to the folder level java script. When the call is not made, the main loop processes normally.
The folder level java script returns true as does the trusted function.
any thoughts or suggestions?
What are you seeing in the JS console when the loop breaks? Do you have the function in the folder-level JS set as a trustedFunction, using beginPriv() and endPriv() around any blocks that require a permissions elevation?
No errors, but i just remembered vaguly reading something about having the same variable names in the folder-level scripts. I changed the looping variable in the "other" JS file to be "iW" rather than just an "i".