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;
}
Topstyle Javascript API
-
- Rank I - Novice
- Posts: 11
- Joined: Wed Sep 12, 2012 3:00 pm
Re: Topstyle Javascript API
bueller anyone
- TopStyle Support
- Rank VI - Professional
- Posts: 506
- Joined: Sat Jun 13, 2009 12:38 pm
- Contact:
Re: Topstyle Javascript API
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.