ruby on rails - Updating UI realtime in RoR after API Calls -
I am developing an app using the Amazon API, which unfortunately is only small at a time Records allow back, which causes significant downturn when loading more than one worth of items worth of calls. I want to acquire these records more. I understand how to do this, use some nodes, or some other asynchronous calls, but there is some difficulty in implementing this idea.
Any help would be greatly appreciated.
What you need to be able to do is require a more robust client-side JavaScript library. JQuery has a respectable AJAX driver that is a great place to start.
If your rail application takes some time to produce results based on the Amazon API, then split page rendering in two components. To dynamically load the results of your call, present the page immediately after the JavaScript trigger, and it can "spin" the call before inserting the HTML in the document.
AJX starts to trigger this operation load, because you will not need to render the "progress" page as a separate step.
Although you can use Node.js for this type of thing, back-end intermediation tools, you find it easy to work with Event Messines because it's built with Ruby and you can create your own Many rail codes can benefit directly.
Comments
Post a Comment