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