Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
How to use AJAX requests to retrieve HTML or JSON content — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to use AJAX requests to retrieve HTML or JSON content

Question
15
Views
0
Comments
edited Jul 20, 2020 10:02AM in Commerce

Content

This article will present a very simple Use Case that can be used in many situations.

The Widgets presented here can retrieve content either in JSON or HTML format using AJAX calls, and display the result.

 

We are going to use a few tools to demonstrate the feature:

  • a simple Web server using Node.js
  • a tunneling solution with ngrok to expose your local server on a public secured URL
  • a monitoring tool called nodemon to restart your local server in case of changes

 

A few best practices will be described in the attached PDF such as:

  • using asynchronous calls to retrieve content in Widget code

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!