summaryrefslogtreecommitdiffstats
path: root/lib/class/ajax.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/class/ajax.class.php')
-rw-r--r--lib/class/ajax.class.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/class/ajax.class.php b/lib/class/ajax.class.php
index e4e4baf8..1a064395 100644
--- a/lib/class/ajax.class.php
+++ b/lib/class/ajax.class.php
@@ -157,5 +157,30 @@ class Ajax {
} // run
+ /**
+ * start_container
+ * This checks to see if we're AJAX'in if we aren't then it echos out the
+ * html needed to start a container that can be replaced by Ajax
+ */
+ public static function start_container($name) {
+
+ if (AJAX_INCLUDE == '1') { return true; }
+
+ echo '<div id="' . scrub_out($name) . '">';
+
+ } // start_container
+
+ /**
+ * end_container
+ * This ends the container if we're not doing the AJAX thing
+ */
+ public static function end_container() {
+
+ if (AJAX_INCLUDE == '1') { return true; }
+
+ echo "</div>";
+
+ } // end_container
+
} // end Ajax class
?>