This is the login panel

 

Home|Account

Return to Product Support > Learning Center > Developer References > Javascript API

cj.remote

The remote method uses ajax to execute server addon methods.

cj.remote(arguments)

Example

cj.remote({

'method':'myRemoteMethodAddon'
,'formId':'myFormId'
,'callback':myCallbackFunction
,'callbackArg':jsObjectPassedAsSecondCallbackArg
,'destinationId':'IdOfHtmlElementWhereResponseWillBeSet'
,'onEmptyHideId':'IdOfHtmlElementToBeHiddenIfResponseIsEmpty'
,'onEmptyShowId':'IdOfHtmlElementToBeShownIfResponseIsEmpty'
,'queryString':'a=1&b=2'
,'url':'/optionalLinkIfNoRemoteProvided'
});

Arguments

'method': string - addonname

'formId': string - html Id of form to be submitted

'callback': function - function to call on completion, two arguments, response and callbackArg

'callbackArg': object - passed direction to the callback function

'destinationId': string - html Id of an element to set innerHtml

'onEmptyHideId': string - if return is empty, hide this element

'onEmptyShowId': string - if return is empty, show this element

'queryString': string - queryString formatted name=value pairs added to post

'url': string - link to hit if not addon name provided

.

Support

Home

Search

FAQ



space
Login
space