Server-side JavaScript

Search:

Welcome

Login to contribute. Register if you haven't yet.

Need Support?

Search this site to find an answer. If you still need help, post a Question. Private or account-related support inquiries can be made at the Private Support forum.

Server Side Java Script

Web programs written in JavaScript can run within an EditMe site. The JavaScript API has read/write access to the site data (pages, comments, attachments, users, groups, policies, settings, etc.) as well as read/write access to a simple name/value pair database that can be searched and queried by key.

Server-side JavaScript is included in special server-side script tags within a Layout or Scripted Page. You can also create pure JavaScript pages that write to an output buffer. See the following pages for more information.

  • Scripted Pages - A discussion of Layouts vs. Scripted Pages.
     
  • Server Side Script Tags - rules for server-side script tags within scripted pages and layouts.
     
  • JavaScript API Reference - complete reference to EditMe's built-in JavaScript classes.
     
  • Using DOM4J - a page about the XML library used in EditMe server-side JavaScript.
     
  • Raw JavaScript Output - a discussion of pure JavaScript pages that write to an output buffer, useful for such things as custom RSS feeds. This page also includes an example of how to modularize your code and reuse scripts in other scripts.
     
  • JavaScript API Event Handlers - EditMe's new event model allows you to write functions that get called as part of EditMe built-in functionality. For example, you can write a function that gets called every time a user logs in.
     
  • Server Side Java Script Includes - A discussion of how to reuse snippets of JavaScript code in an EditMe application.
     
  • Server Side JavaScript Debugging - Tips for debugging an EditMe application.