Question

I like to get json data from a external webpage and use this data in my Xpages. the external website have the protocol https.

so I can't use

var http_request = new XMLHttpRequest();

http_request.open("GET","XX");

has anybody a hint for me?

Was it helpful?

Solution

Alternatively you could use JSONP for your GET request:

http://dojotoolkit.org/reference-guide/1.8/dojo/io/script.html

OTHER TIPS

Get it in backend with f.e. an XPage and HttpURLConnection class. This XPage can serve the JSON data to the client so you can use XMLHttpRequest.

you can use XMLHttpRequest object for Https protocol.

see https://stackoverflow.com/a/6301294/1029621

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top