powered by Authenteo
by Xucia  

Learn more

UI API

illum.navigate(targetPage)

This takes a page object as an argument. Calling this function induces changing pages to the given page.

illum.getContext(element)

This function takes a DOM element as an argument, and finds the correct context object for the given element. The context object contains information about the current variables being used to render the page such as the current component, content, and any other variables set by the layout template.

illum.createDialog(context,header,body,footer)

This creates a popup dialog. It creates the dialog using the given context object. The header, body, and footer can be strings or components, and they compose the respective parts of the popup window.

illum.getElementsBy(condition,tag,root)

This function will find all the elements that match for the given condition function, and are the tag specified by the tag argument and are a child of the root argument. The condition function should take a single argument being the element to test, and return true if it should be included in the resulting array.

illum.applyStyles(element,styles)

This function takes CSS styles and applies to the given element argument by creating a dynamic stylesheet (the element is not modified). The styles argument can be a persistent list (not recommended), or it can simply be a string that represents the contents of stylesheet. Each selector will be given a prefix to encapsulate the style effects to this element (for a blank selector) and children of this element (for all selectors).

illum.waitForNextFrame()

This function is will pause for about 40 milliseconds the purposes of doing an animation. It is similar to calling sleep(40) , but with some important differences. First of all, if multiple threads are simultaneously doing an animation and using the waitForNextFrame, the waitForNextFrame will use a single timer to pause and resume all the threads. This is necessary for efficient smooth animations. Second, this function will return a value indicating if the frames are on schedule. If the frames are on schedule, the function will return true. If the last frame takes longer than 40 milliseconds, and the frames are "getting behind", this function will return false. This is used to indicate that the animation code should not peform any DOM updates for the frame. The code does not have respect the return value's indication to not do anything, but it should respect it if desires to stay on the frame schedule.

illum.editThisPage()

This function will reload the current page in edit mode.

News

Authenteo 1.1 is available.

Firebug - Web Development Evolved Now with Firebug integration . Make changes to CSS and HTML with Firebug and save the changes

Check out press releases and the following articles on Authenteo:

Authenteo beta