Now when trying to incorporate the API, im running into trivial issues that i cant seem to hurdle over because the 'Basic Concepts' page is not so basic.
I can fully comprehend what these 2 lines of HTML code mean:
Code: Select all
<div id="placeholder"></div>
<script type="text/javascript" src="http://documentserver/web-apps/apps/api/documents/api.js"></script>
the next part is where im having trouble..
this line of javascript:
Code: Select all
var docEditor = new DocsAPI.DocEditor("placeholder", config);
secondly, i assume we declare the config object as so:
Code: Select all
var config = config = {
"document": {
"fileType": "docx",
"key": "Khirz6zTPdfd7",
"title": "Example Document Title.docx",
"url": "http://example.com/url-to-example-document.docx"
},
"documentType": "text",
"editorConfig": {
"callbackUrl": "http://example.com/url-to-callback.ashx"
}
};
in the document property... i declared the title the same name as a sample docx file i have in the directory of my webserver.
i declared the url to be: http://webserver_ip_address/example.docx because this is where my sample docx is located
im not sure what to put in for the callbackURL though. I am trying to get this running asap and would love to have this resolved immediately.
Your help is kindly appreciated.