コード例 #1
0
 public static function jQueryAjax()
 {
     if (empty(self::$jQueryAjax)) {
         include_once __DIR__ . '/class.jQueryAjax.php';
         self::$jQueryAjax = new jQueryAjax(self::$jQObj);
     }
     return self::$jQueryAjax;
 }
コード例 #2
0
    echo $data;
    ?>
		</div>
		<?php 
    exit;
}
include __DIR__ . '/classes/class.nUberJTools.php';
/* @method ::Initialize
 ** This method allows for globalizing how your jQuery will run.
 ** For instance, in WordPress, it may be necessary to use the "nUberJTools::WP_COMPAT" setting
 */
//nUberJTools::Initialize(nUberJTools::WP_COMPAT);
/* @method ::Ajax
 ** This method initializes the AJAX class/app
 */
$ajax = nUberJTools::jQueryAjax();
/* @param array ["on"]: This is the trigger that activates the ajax.
 ** This setting can have keyup, keypress, submit, change etc.
 **
 ** @param array ["id"]: This is how to identify the element (form,or other)
 ** If you use "id", your element must have the same "id" name: <form id="tester">...etc
 ** You can use "class" to identify a specific element from a set of elements:
 ** <div class="myclass">test1</div>
 ** <div class="myclass">test2</div>
 */
$form['on'] = 'change';
$form['id'] = 'tester';
/* @method ::ActivateAjax
 ** This method is how Ajax knows what to do. It implements the settings established above
 ** In this instance, the setting are meant to activate the form labeled as "tester" using the id as the selector:
 ** <form id="tester">