Page 1 of 1

Topstyle Javascript API

Posted: Mon Apr 29, 2013 10:38 am
by samsChoice
Where can I find some type opf documentation about the Javascript API for Topstyle?
is the system.JS have all the api calls?
The only ones I have found so far are:

function objectTag()
function initUI()
function onOK()

document.forms[0] Maybe????



ts.hasSelection()
ts.getSelection() -> ts.getSelection(false, true) -> what do the parameters do?
ts.isASP_VB()
ts.showPopupMenu() -> example usage?
ts.showPopupMenu(document.forms[0].type.value, 'Application,Database,Template,Object,Synchronization,MissingInclude,Expression,Lock,Any')


ts.isXHTML()
ts.browseForFileURL()
ts.getCharSet()
ts.getDocumentDOM()
ts.getImageSize()
ts.hasParent()
ts.urlEncode()
ts.isPHP()

Some functions that I think can be reused

function getDOM() {
if (!DOM)
DOM = ts.getDocumentDOM();
return DOM;
}

Re: Topstyle Javascript API

Posted: Tue May 07, 2013 8:48 am
by samsChoice
bueller anyone

Re: Topstyle Javascript API

Posted: Wed May 08, 2013 9:10 am
by TopStyle Support
I'm afraid there is no official documentation for the API that powers the HTML toolbar. My advice is to open and study one of the existing HTML toolbar items (the "e-mail link" is a great start). If you have any specific questions, please feel free to ask. I'm here to help.