
RemObjects SDK for JavaScript is a completely native JavaScript implementation of the RemObjects SDK client infrastructure, allowing you to create rich web client based applications and websites that talk to your RemObjects SDK servers.
RemObjects SDK for JavaScript applications can run in the web browser (or in other surroundings where JavaScript scripting is supported) and use 100% native JavaScript to talk directly to RemObjects SDK servers – just like clients written in any of the other platforms.
RemObjects SDK for JavaScript gives developers the familiar client APIs to work with data – from the Client Channels and Messages to auto-generated proxy objects for your remote services, all within the JavaScript language and object model.
RemObjects SDK for JavaScript applications can be standalone (such as an independent set of HTML, CSS and JS files) or can be served from inside a RemObjects SDK server's HTTP channel.
RemObjects SDK for JavaScript is part of every RemObjects SDK for .NET and Delphi server.
RemObjects SDK for JavaScript provides the foundation for Data Abstract for JavaScript, which offers the full Data Abstract client infrastructure to access and update data from your middle tier in your JavaScript applications.
Common use cases for RO/JavaScript include:
Building HTML5 based offline web apps for Apple iOS that work with your web services
RO/JavaScript in Action
Enabling JavaScript client access in your existing RemObjects SDK Servers is as easy as dropping a component and setting a few properties.
Simply drop the new JavaScriptHttpDispatcher (.NET) or TROJavaScriptHttpDispatcher (Delphi) component into your application and connect it to your Server Channel. Your server will automatically start serving the RemObjectsSDK.js library that clients can use to connect to your server, in a "/js" subfolder of your HTTP service.
In addition, you can also have it serve custom HTML, JavaScripts and related files (including the _Intf.js files for your services), either from a folder or embedded as resource into your server executable, allowing your server to be fully self-contained and able to serve up the web client code itself.
Alternatively, if you want to have your data accessible from external web files, for example hosted as part of your regular website, you can set the new SendCrossDomainHeader property on the HTTP Server Channel to indicate to web browsers that they may allow pages from other domains to connect with your service. (You can read more on CORS here.
Just as on the other platforms, RemObjects SDK for JavaScript leverages interface code that is automatically generated from your server's RODL file to make it easy and intuitive to call your services. To generate the *_Intf.js for a server, simply open its RODL file in Service Builder (Windows) or the rodl2objc tool (Mac) and save the .js file.
Find out more
Check out this wiki article to get started, or get an overview of the available APIs, here.
Any Platform You Like™
![]() |