zimki | documentation | search
 
Zimki Documentation - CookBook.Console

Using the JavaScript Console

Sometimes you just want to try out some javascript, to see if it works. Zimki provides a simple environment to do this in; to make use of it, open click on the JavaScript Console link under the REALMS entry in the portal.

In the textbox that appears, enter the following and click run:

function tester() {
  return 'hello';
}
tester();

The heading Last response should appear above the JavaScript input box. Underneath it, the text "hello" should appear.

Complex operations from the console

It is important to note that you can do a lot more than just off-the-cuff testing from the JavaScript console. You have full access to the active realm from it, so anything you can do in a published javascript function you can do in this realm. You have access to all the templates, and any functions or variables you have defined in your javascript instances.

Parent

CookBook