Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NotAllowedError + app.LaunchURL

Status
Not open for further replies.

JimFL

Programmer
Jun 17, 2005
131
GB
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top