Topstyle Javascript API

Post anything about TopStyle here. NOTE: TopStyle has been discontinued.

Moderator: TopStyle Support

Post Reply
samsChoice
Rank I - Novice
Rank I - Novice
Posts: 11
Joined: Wed Sep 12, 2012 3:00 pm

Topstyle Javascript API

Post by samsChoice » Mon Apr 29, 2013 10:38 am

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

Re: Topstyle Javascript API

Post by samsChoice » Tue May 07, 2013 8:48 am

bueller anyone

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

Re: Topstyle Javascript API

Post by TopStyle Support » Wed May 08, 2013 9:10 am

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.

Post Reply