I don't see anywhere where the AFExecuteThisScript function is defined... I also don't see it in the internal functions of the application.
What did this come from and why do you think it should work?
To run raw code you can use the eval command of JS.
hi try and Bernd.... Thanks for the update. It works now.
Please advice/support on the further need using the same eval command.
Script functions :
1) loaded folder-level-script to create toolBar button and while clicking the toolBar button it will trigger eval command to run "abcd.js" file located somewhere in the server (solution as suggested by "try69" - command "eval" to run js file)
2) Now I have added "additional function "importDataObject and getDataObject" in that abcd.js file" (unfortunately, I can't able to excute the second js file even the same eval command is used.
3) Also I can't able to verify or get alert of the variable "var doc =this.documentFileName; from the externally called abcd.js file. (error: doc is undefined).
please advice on the above 2 request.
Thanks very much for the support.