Pergunta

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?

Foi útil?

Solução

Alternatively you could use JSONP for your GET request:

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

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top