doc: tweak SDK information
This commit is contained in:
parent
36f62dd502
commit
3a0566ca0a
@ -44,14 +44,9 @@ The server responds on the following URLs:
|
|||||||
|
|
||||||
=USAGE (EMBEDDING FOR WEB)=
|
=USAGE (EMBEDDING FOR WEB)=
|
||||||
|
|
||||||
Your webpage should load the SDK from the contented server, then call the `contented.init` function to display the upload widget over the top of an existing DOM element.
|
Your webpage should load the SDK from the contented server, then call the `contented.init` function to display the upload widget over the top of an existing DOM element. Your callback will be passed an array of file IDs of any uploaded items. The SDK depends on jQuery.
|
||||||
|
|
||||||
The SDK will run your callback, passing it the file IDs of any uploaded items.
|
`<script type="text/javascript" src="SERVER_ADDR/sdk.js"></script>
|
||||||
|
|
||||||
The SDK depends on jQuery.
|
|
||||||
|
|
||||||
`
|
|
||||||
<script type="text/javascript" src="SERVER_ADDR/sdk.js"></script>
|
|
||||||
contented.init("#target", function(/* String[] */ items) {});
|
contented.init("#target", function(/* String[] */ items) {});
|
||||||
`
|
`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user