Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »


cbx.Ajax

The cbx.Ajax JavaScript class provides a simple way to make Ajax requests with maximum flexibility. The cbx.Ajax JS class provides three-parameters - Methods, Params, and URL.

The structure of this class is as follows:

cbx.ajax(
{ 
	params : params, 
	success : function(result)
	{
	},

	failure : function(result, request)
	{ 
	}

URL:'/Someurl'

}); 

Here,

  • Params: The params should typically contain the data to be submitted to the server along with the combination of Product Code, Sub Product Code, Function Code, and Action to route through the Canvas default flow.
  • Success and Failure: These are the methods that handle the successful and unsuccessful submission of request.
  • URL: This is an optional attribute. If URL is not provided, the request redirects to Canvas's WidgetControllerServlet.


  • No labels