Hi,
I am trying to run the app.LanuchURL code below to open a new document in a window but I get these errors in my javascript debugger. I am running the javascript command from link actions properties.
The error:
NotAllowedError: Security settings prevent access to this property or method.
app.launchURL:2:Link undefined:Mouse Up
I have been told that I need to use a trusted function to resolve these issues but am unsure how to use it.
This was my code before:
app.launchURL("example.pdf","_blank");
This was my code trying to put it into a trustedFunction but it still doesn't work properly:
function Browse_def(){
app.launchURL("CBS18_TemplexC_180407.pdf","_blank");
}
var Browse = app.trustedFunction(Browse_def);
Can anybody put me on track with this? I am a newby to PDF coding.
JimFl
I am trying to run the app.LanuchURL code below to open a new document in a window but I get these errors in my javascript debugger. I am running the javascript command from link actions properties.
The error:
NotAllowedError: Security settings prevent access to this property or method.
app.launchURL:2:Link undefined:Mouse Up
I have been told that I need to use a trusted function to resolve these issues but am unsure how to use it.
This was my code before:
app.launchURL("example.pdf","_blank");
This was my code trying to put it into a trustedFunction but it still doesn't work properly:
function Browse_def(){
app.launchURL("CBS18_TemplexC_180407.pdf","_blank");
}
var Browse = app.trustedFunction(Browse_def);
Can anybody put me on track with this? I am a newby to PDF coding.
JimFl