Return to Product Support > Learning Center > Developer References > Javascript API > cj.frame

cj.frame (requires admin framework)

The remote method uses ajax to execute server addon methods.

cj.frame.submitForm( remoteMethodName, frameHtmlId, formHtmlId)

Example

cj.frame.submitForm('myAccountFrameHandler','myAccountFrame','FormToSubmitId');

Arguments

remoteMethodName: string - the name of the addon to call

frameHtmlId: string - html Id of frame that will receive the html results from the addon

formHtmlId: string - the Html Id of the form that will be submitted to the remoteMethod

cj.frame.update( remoteMethodName, frameHtmlId, queryString)

Example

cj.frame.update('myAccountFrameHandler','myAccountFrame','formId=10');

Arguments

remoteMethodName: string - the name of the addon to call

frameHtmlId: string - html Id of frame that will receive the html results from the addon

queryString: string - Anything else to be passed to the remoteMethod