Glossary Item Box

General: OverviewCMS architecture

Controls: Controls

Site templates: Site templates

See Also CmsDeveloperGuide Send comments on this topic.

Client-side API

Any site based on Astron SiteManager CMS system has this client side JavaScript API.


Varitables

Varitable Description
CMS_FullPathToSiteRoot Folder of site root
isOpera IS current browser Opera or not
isIE IS current browser MS IE or not
isMoz IS current browser Mozilla or not

Functions

CMS_GetEmailLink(sUser, sDomain, sATagAttributes, sLinkText, sSubject, sTitle)
This function render antispam e-mail link.

Example:
<script language="JavaScript">
CMS_GetEmailLink('info', 'asplib.net', 'class="txtbold"', 'Web-master', 'E-mail subject', 'Link title');
CMS_GetEmailLink('info', 'asplib.net', 'class="txtbold"');
</script>

Result HTML code:
<a href="mailto:info@asplib.net?Subject=E-mail subject" class="txtbold" title="Link title">Web-master'</a>
<a href="mailto:info@asplib.net?Subject=E-mail from asplib.net" class="txtbold" title="Send e-mail">info@asplib.net</a>




CMS_OpenInNewWindow(psURL, piWidth, piHeight)
The function opens URL in new window with certain width and height.

General: OverviewCMS architecture

Controls: Controls

Site templates: Site templates

 

 


© 2005-2007 Astron Digital Ltd. All Rights Reserved.