Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

pdf http request

$
0
0

hello

 

I work on Acrobat Pro

 

My goal is to send arequest HTTPthrough my PDF file

 

I took a classic example:

 

I put javascript code in Programmes/Acrobat/......../javascript/


ajax = function(cURL) {

    var params =

    {

            cVerb: "GET",

            cURL: cURL,

            oHandler:

            {

                    response: function(msg, uri, e,h){

                            var stream = msg;

                            var string = "";

                            string = SOAP.stringFromStream( stream );

                            app.alert( string );

                    }

            }

    };

 

    Net.HTTP.request(params);

}

 

app.addMenuItem({ cName: "Go PHP", cParent: "File",

    cExec: 'ajax( "http://localhost/myPage.php");',

    cEnable: "event.rc = (event.target != null);",

    nPos: 0

});

 

but when I go to "File/Go PHP" Acrobat says that it isan internal error


what is problem?

 

Thanks


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>