http request in javascript pdf api -


i'm trying request javascript api adobe reader. i'm using net.http object following code:

get =  app.trustedfunction (function(curl) {     app.beginpriv();     var params =      {         cverb: "get",         curl: "http://ip_addr/checker/comments/1",         ohandler:         {             response: function(msg, uri, e)                 {                     if(e != undefined && e.error != 405) {                         app.alert("failed get: "+ e);                     } else app.alert("connected");                 }               }         };         net.http.request(params);     app.endpriv();  }); 

when call function in code, first time program opens working fine , can connect.

the problem when call function again using submenu this:

  app.addmenuitem ({cname: "connect", cparent: "edit", cexec: "get()"}); 

i error, tried adding pdf file privileged locations because think it's security related issue

any idea?


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -