Use Presto Connect for Javascript
You use PC4JS to connect custom apps, web applications or web sites to the Presto Server and invoke mashable information sources or mashups. This JavaScript API is hosted with the Presto Server and uses the Presto REST API.
This topic covers the basics of using PC4JS to create a connection to the Presto Server, send a request to invoke a mashable or mashup and handle a response in two different contexts: