Ajax call on Canvas



I know this is a generic question, but what’s the best way to do an ajax call within Canvas? Not sure if there is any existing tricks that I can already use.

Basically I have the following requirement, I need to input a few things on a textbox, then it sends data to a relational database, do necessary checking and then return results back to the same Canvas page, and based on that result, I will do the next thing which is to execute some TI process based on the return value.

Any idea would be appreciated!



Hi @twong,

Angular’s $http service will be the preferred way on that since Canvas’ client side services and directives are accessible through AngularJS’s Framework.