Book Image

Oracle JET for Developers

By : Raja Malleswara Rao Malleswara Rao Pattamsetti
Book Image

Oracle JET for Developers

By: Raja Malleswara Rao Malleswara Rao Pattamsetti

Overview of this book

This book will give you a complete practical understanding of the Oracle JavaScript Extension Toolkit (JET) and how you can use it to develop efficient client-side applications with ease. It will tell you how to get your own customized Oracle JET set up. You'll start with individual libraries, such as jQuery, Cordova, and Require.js. You'll also get to work with the JavaScript libraries created by Oracle, especially for cloud developers. You'll use these tools to create a working backend application with these libraries. Using the latest Oracle Alta UI, you'll develop a state-of-the-art backend for your cloud applications. You'll learn how to develop and integrate the different cloud services required for your application and use other third-party libraries to get more features from your cloud applications. Toward the end of the book, you'll learn how to manage and secure your cloud applications, and test them to ensure seamless deployment.
Table of Contents (17 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

External data access and animations


Knockout JS can easily integrate with any of the open source frameworks seamlessly to achieve the business requirement. For external data access, we can use jQuery methods such as $.getJSON() and $.post() to populate the content from external source, or invoke jQuery animation methods for onscreen animations.

For example, if your HTML element has to load employee information from an external sourceon button click, call a Knockout function first, within which you can invoke jQuery methods, as follows:

  1. The following code is the HTML part:
        <p><button data-bind='click: loadEmployee'>Load Data
        </button></p>
  1. JavaScript:
        self. loadEmployee = function() {
          $.getJSON("/get-employee", function(data) {
            employeeViewModel.firstName=data.firstName;
          });
        }