CKEDITOR.plugins.embedBase._jsonp
classsingletonprivate
JSONP communication.
Filtering
Methods
sendRequest( urlTemplate, urlParams, callback, [ errorCallback ] ) → ObjectCKEDITOR.plugins.embedBase._jsonp#sendRequestSends a request using the JSONP technique.
Parameters
urlTemplate : templateThe template of the URL to be requested. All properties passed in
urlParamscan be used, plus a{callback}, which represents a JSONP callback, must be defined.urlParams : ObjectParameters to be passed to the
urlTemplate.callback : Function[ errorCallback ] : Function
Returns
ObjectThe request object with a
cancel()method.
-
Creates a
<script>element and attaches it to the document<body>.Parameters
url : ObjecterrorCallback : Object