retrieve the JSON information from a secure website using HTTPS

Is there a way to retrieve JSON data from an external webpage and incorporate it into my Xpages? The external website uses the https protocol.

I'm unable to use:

var http_request = new XMLHttpRequest();

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

If anyone has any suggestions or hints, I would greatly appreciate it!

Answer №1

Another option is to utilize JSONP when making your GET request:

Answer №2

Retrieve the data from the backend using an XPage and the powerful HttpURLConnection class. The XPage will then deliver the JSON content to the client, allowing you to make use of XMLHttpRequest for further processing.

Answer №3

To handle the Https protocol, one can utilize the XMLHttpRequest object.

For more information, please visit

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Show information retrieved from fetch api

Hi there! I've been trying to fetch data from the Avascan API and display it on my HTML page, but so far, I haven't had any luck. I've experimented with using the Fetch API, JSON, and AJAX methods, but none of them seem to work for me. Do yo ...

Create a JSON object using AngularJS to perform a delete operation

Struggling to create a JSON object for deleting data via REST API. Encountering issues with the API call and suspect it's due to improper construction of the JSON object. Here is an excerpt from my AngularJS Controller Code: var data = ["ABC","DEF"] ...

FrisbyJS and JSONSchema encounter a SchemaError when the specified schema does not exist

I utilize frisbyjs along with modules like jsonschema and jasmine-node for execution. There is a particular schema named test.json: { "error": { "type": "array", "minItems": 2, "items": { "type": "object", "properties": { ...

Receive various JSON replies from PHP

I am currently developing an app using PhoneGap which involves a script to read a ticket code. The script performs two queries: one to update the ticket status in the database if it exists, and another to write a log in a separate table. This functionality ...

Creating an index on a JSON array type in MySQL 5.7 can optimize the performance of your

Currently, I am using an SQL script similar to SELECT * FROM user WHERE JSON_CONTAINS(users, '[1]');. However, this method scans the entire table and is inefficient. I would like to create an index on the users column. For instance, if I have a ...

Every time I attempt to execute mupx deploy, an error message appears

issue in console shubhabrata@shubhabrata-VirtualBox:~/Meteor/myapp$ mupx deploy Meteor Up: Advancing Meteor Deployments for Production Configuration file : mup.json Settings file : settings.json “ Discover Kadira! A powerful tool to monitor yo ...

Exploring ways to iterate through an array in JSONATA

Here is an example of an array: { "tocontrol": [{"name": "john"},{"name": "doe"}] } The desired output should look like this: { "method": "OR", "match": [ { &quo ...

Constant price updates through an API loop

I am transferring data from a spreadsheet to a dataframe that includes product details, which I need to update prices in an e-commerce via a put request through an API. However, I am facing the challenge of creating a loop to properly iterate through the e ...

Utilizing JSON API data to populate Leaflet maps

I am currently working on fetching JSON data from an API call, extracting the latitude, longitude, and name variables to create a GeoJSON array, and then displaying it on a Leaflet map. Despite not encountering any errors in the console, the geojson appea ...

Exploring deeply nested objects in elasticsearch

Here's how my mapping is set up: "mappings": { "nodes": { "properties": { "createdAt": { "type": "date", "format": "dateOptionalTime" }, " ...

The jsTree rendering does not properly display the "closed" state of the JSON data nodes

Currently, I am in the process of setting up a jsTree instance to display a directory listing from a file server. However, I am encountering challenges with getting "sub-folder" or "sub-directory" nodes within the jsTree to show as open-able. Even though ...

Retrieving the value of an array from a JSON data structure

I am working with the object shown below to extract the desired output. The result will be a new object that represents the final output. var data = { Customer: { Name: "emp1", Departments: [ {Departme ...

Exploring the capabilities of JSONmodel by attempting to retrieve data from a server onto an iOS device

I've been working on integrating JSONmodel to retrieve data from my server to my iOS device. I have set up all the classes properly, but for some reason, it returns null after calling the URL. feed = [[Feeds alloc] initFromURLWithString:@"http://http ...

Issues with jQuery ajax when trying to access remote JSON data

Even though I receive a json response when entering the URL in my browser, I am unable to access it using my code. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $.ajax({ url:"http ...

A guide for implementing fast-json-patch in your Angular 2 projects

Looking to incorporate the "fast-json-patch" library into my Angular 2 project. This library can be found at https://github.com/Starcounter-Jack/JSON-Patch. I attempted to include the following code: 'fast-json-patch': 'vendor/fast-json-pa ...

Error encountered while configuring the log4js function in a NodeJs environment

Encountering an issue with my NodeJs application where I'm using log4js for logging. The error in the console window is related to a syntax problem while running in the express runtime platform. Error: undefined:1 ?{ ^ SyntaxError: Unexpected token ...

Utilizing NodeJS to Extract Data from MongoDB and Export to JSON File

I'm struggling to figure out how to write a specific field from my mongodb database to a json file using node js. Can anyone provide guidance or resources? I haven't had much luck finding helpful information so far. ...

What is the best Java framework to use for developing an AJAX application?

After combing through various discussions on forums about basic Java web frameworks and Java web development, I realized that most do not touch upon the AJAX aspect. For the project I am currently working on, a significant portion of the client-side work w ...

Isn't AJAX all about the same origin policy?

Despite my confusion surrounding the same domain origin policy and jQuery AJAX, I have noticed that when I make a GET request to a URL using jQuery, I am able to successfully retrieve the results. This goes against what I understood about the restriction ...

How to incorporate a new attribute into a JSON object in node.js

In my quest to enhance a JSON file, I aim to add new fields that are distinct from the existing ones. The structure of the JSON is as follows: objJson={ istructor_id:"12345", student_id:"333", date: "2022-10-5" } I have tw ...