subscribe to RSS feeds

What's happening at OcularCMS®

« back to all blogs

JavaScript Callbacks added to API

To use a callback function with json data passed to it, you can now retrieve data via the OcularCMS API and have it automatically call a function that you have defined in your scripts. Thinking of creating a widget to syndicate your blog articles or products on other sites? Want to show your Twitter timeline on another website? No problem.

There are two ways to use the callback, one that will simply call the function and pass the data, and another that will do the same, but will also allow for the function to be defined after the call and will gracefully add itself to other onloads if they exist so that they do not break your scripts.

To learn more, check out the API documentation.


Categories: changelog

Blog Articles

subscribe for product announcements