Topstyle Javascript API

TopStyle has been discontinued and support is no longer available. The forum is read-only. NOTE: TopStyle was not developed by the makers of CSS HTML Validator.
Locked
samsChoice
Rank I - Novice
Posts: 11
Joined: Wed Sep 12, 2012 3:00 pm

Topstyle Javascript API

Post 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;
}
samsChoice
Rank I - Novice
Posts: 11
Joined: Wed Sep 12, 2012 3:00 pm

Re: Topstyle Javascript API

Post by samsChoice »

bueller anyone
User avatar
TopStyle Support
Rank VI - Professional
Posts: 506
Joined: Sat Jun 13, 2009 12:38 pm
Contact:

Re: Topstyle Javascript API

Post 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.
Locked