Basic Enterprise Application Realm

Basic Enterprise Application Realm Documentation

  • 1 PHP Reference
    • 1.1 Introduction
    • 1.2 shared_lib.php
    • 1.3 ac_tables.php
    • 1.4 ac_email.php
  • 2 Javascript Reference
    • 2.1 Introduction
    • 2.2 ac_ajax
    • 2.3 ac_event
    • 2.4 ac_filter
    • 2.5 ac_menu
    • 2.6 ac_panel
    • 2.7 ac_select
    • 2.8 ac_toc
  • 3 Forms
    • 3.1 Introduction
    • 3.2 How It Works
    • 3.3 AJAX
    • 3.4 form_processor_v2
    • 3.5 form_processor

2.2 ac_ajax

March 25th, 2025

This provides the backbone of the BEAR application server interaction.

The use of the ac_ajax class is more complex than can be covered here. Please see the Developer Toolkit section Forms (AJAX) which is dedicated to the topic.

Current version: ac_ajax_v2.js
Dependencies: none

2.2.1 Public properties

Version Type Default Purpose
$timeout 2 integer 300000 This is the amount of time that and AJAX request can wait for a response before timing out in microseconds. The default is 5 minutes (300,000 microseconds).

2.2.2 Public Methods

Version Arguments Purpose
addForm 2 form ID (string)[, asynchronous (boolean), progress ID (string), file upload ID (string), #top on complete (boolean)] Registers a HTML form to be handled via AJAX.
postLoad 2 query string action (string) Immediately requests an AJAX update to the page. Generally for allowing slow loading sections to be loaded after the main HTML has loaded so that the page does not appear to hang during render.
addInterval 2 form ID (string), interval seconds(integer) Submits the designated form repeatedly on intervals of defined seconds.
previous: Introduction next: ac_event