The fastest easiest way to get it right.

tableController

NAME

x6plugins.tableController

FUNCTION

The Javascript method x6plugins.tableController is a constructor function. It accepts as a parameter the ID of a DOM element. It adds functions to that DOM element so that it will fully implement all browser-side features of our tableController object.

A tableController subscribes to all events in which a user requests to do something like add a row or delete a row. The tableController executes whatever server-side requests are required, and then fires various events to notify other UI elements that they should display the results.

Normally you do not invoke this method directly. All x6 plugins are detected and implmented automatically on page load.

To turn any DOM element into a table controller, just set the properties x6plugIn and x6table, as in either of these:

      <?php
      # here is one way to do it:
      echo "
"; # another way to do it: $div = html('div'); $div->hp['x6plugIn'] = 'tableController'; $div->hp['x6table'] = 'users'; $div->render(); ?>

You should not have more than one table controller per table on a page -- Andromeda will not trap for this!

INPUTS

id - the ID of the object to be 'activated'.

RESULTS

no return value.

User Comments

There are no user comments yet on this page.


Add A Comment

Comments will not appear until after they are moderated. Comments are usually moderated within a few hours on weekdays, but may take longer on weekends and holidays.

Name or nickname: (This will appear with your comment)


Email (this will never be displayed)


Enter your comment here. Use [b] and [/b] for bold, [i] and [/i] for italic, and [pre] and [/pre] for code samples. All literal HTML and PHP that you enter will be escaped out and displayed as you enter it.


Home |  Documentation |  Download |  Credits |  Contact |  Login
Andromeda © Copyright 2004-2010, Licensed under the GPL Version 2