XOAD HTML Class.
This class is used to update the content and the style of a page.
Example:
- <?php
- class Update
- {
- function ui()
- {
- sleep(1);
- $content =& XOAD_HTML::getElementById('content');
- $content->innerHTML = 'Hello World! How are you?';
- }
- }
- define('XOAD_AUTOHANDLE', true);
- require_once('xoad.php');
- ?>
- <?= XOAD_Utilities::header('.') ?>
- <div id="content">Hello!</div>
- <script type="text/javascript">
- var obj = <?= XOAD_Client::register(new Update()) ?>;
- obj.ui(xoad.asyncCall);
- </script>
Located in /extensions/html/classes/HTML.class.php (line 141)
Adds a given JavaScript code to the output.
Note that you must use the '&' operator in order to get a reference to the script block.
You should add ';' at the end of the script.
Example:
- XOAD_HTML::addScriptBlock('alert("Hello World!");');
Returns an object representing a list of elements that match a given cssQuery in the document.
Note that you must use the '&' operator in order to get a reference to the list.
Example:
Returns the element whose ID is specified.
Note that you must use the '&' operator in order to get a reference to the element.
Example:
- $content =& XOAD_HTML::getElementById('content');
Returns an object representing a list of elements of a given name in the document.
Note that you must use the '&' operator in order to get a reference to the list.
Example:
- $messages =& XOAD_HTML::getElementsByName('message');
Returns an object representing a list of elements of a given tag name in the document.
Note that you must use the '&' operator in order to get a reference to the list.
Example:
- $inputs =& XOAD_HTML::getElementsByTagName('input');
Imports an associative array to the corresponding form elements.
Example:
- XOAD_HTML::importForm('mainForm', array('firstName' => 'First', 'lastName' => 'Last'));
Returns the JavaScript code of all DOM elements.
You should not call this method directly.
Documentation generated on Sat, 12 Nov 2005 20:24:16 +0200 by phpDocumentor 1.3.0RC3