Object: ajaxCRUD

Constructor

Name Requires Returns Default Short description Example
ajaxCRUD object constructor for instantiating the class
new ajaxCrud ( String buttonText, String dbTableName, String dbPrimaryKey, [ String ajaxcrudDir = ""] ) More...
Example

Functions

Name Requires Returns Default Short description Example
addAjaxFilterBox void adds a search box at the top of the page More... Example
addAjaxFilterBoxAllFields all fields searchable adds searchboxes for all fields in your table More... Example
addButton void adds a button to the bottom of the page More... Example
addButtonToRow void no button adds a button to every row and sends the id (pk) of that item to any url More... Example
addOrderBy void orders the table by a specified field More... Example
addTableBorder void off adds a border to the html table
this function is deprecated! -- please use setCSSFile to control style/layout
More...
Example
addValueOnInsert void sets a value to a field on row insert More... Example
addWhereClause void null adds a SQL "where clause" to the query More... Example
appendUploadFilename setFileUpload no value appended append the value of the row to the beginning of the filename More... Example
defineAllowableValues void define "allowable" values for a field. More... Example
defineCheckbox void 1,0 Sets the field to be of type 'checkbox'. More... Example
defineRelationship void defines a relationship between your table and another (via the foreign key) More... Example
disableTableHeaders void table headers: true Turns off html table headers for the table More... Example
disallowAdd void disallow new rows to be added to the table More... Example
disallowDelete void disallows row deletion More... Example
disallowEdit void disallows a field to be edited More... Example
displayAddFormTop void bring the Add Row form to the top of the page More... Example
displayAs void actual field name displays the field name in the table under a pseudonym More... Example
formatFieldWithFunction a user-defined function to be set formatted data non-formatted data format data in a column with a custom function More... Example
formatFieldWithFunctionAdvanced a user-defined function to be set formatted data non-formatted data format data in a column with a custom function More... Example
getNumRows int Returns the number of rows returned More... Example
insertRowsReturned dynamic span w/row count 0 Displays the number of rows returned (can be put anywhere in your application view). More... Example
modifyFieldWithClass void add a css class to a field (used for things like jquery validation or field masking) More... Example
omitAddField void omits the input field from displaying when adding a row More... Example
omitField void omits a field from displaying in the table More... Example
omitFieldCompletely void field not omitted this function calls both omitField and omitAddField for a field More... Example
omitPrimaryKey void omits the primary key from displaying in the table More... Example
onAddExecuteCallBackFunction (callback function) void calls a local function when a new row is added More... Example
onDeleteFileExecuteCallBackFunction setFileUpload, (callback function) void calls a local function when a file (that was previously uploaded) is deleted More... Example
onFileUploadExecuteCallBackFunction setFileUpload, your callback function void calls a local function when a file is uploaded More... Example
onUpdateExecuteCallBackFunction (callback function) void calls a local, user-defined php function after a particular field is edited/updated More... Example
orderFields re-sorted fields in table order in database schema sort the fields order in the database More... Example
setAddFieldNote void null Puts a note (description of the field) next to it when adding a column More... Example
setAddPlaceholderText null null Puts placeholder text on the input fields More... Example
setAjaxFilterBoxSize addAjaxFilterBox or addAjaxFilterBoxAllFields 10 **THIS FUNCTION IS DEPRECATED AS OF V6.0; use second (optional) param of addAjaxFilterBox instead**

sets the size (lengh of the textbox) of an ajax filter box More...
Example
setCSSFile void default.css Sets a css file as the stylesheet to be used to render the table. More... Example
setExactSearchField void Table filter assist function; sets a field to use an EXACT search. More... Example
setFileUpload web-safe filename of uploaded file (on upload allows a field to accept file uploads More... Example
setInitialAddFieldValue null null Set the initial value for a field (when adding a row) Example
setLimit void 50 set the limit of number of rows to display More... Example
setOrientation void horizontal set the orientation of the table (i.e. set to veritcal) More... Example
setTextareaHeight void input box Sets the textarea height for a field More... Example
setTextboxWidth void 20 Sets the width size for a textbox field More... Example
showCheckboxAll void Set ALL checkboxes for a field (in a column) to be on of off. More... Example
showCSVExportOption void Displays a button which outputs table to CSV format More... Example
showOnly void all fields show only a few fields from your table instead of all of them More... Example
showTable ajaxCRUD (the constructor) void (displays the table) function to "run" the script / display the table More... Example
turnOffAjaxADD void (ajax used for adding a row) Turns off ajax for the CREATE crud operation (adding a row). More... Example
turnOffAjaxEditing void turns off the ability to edit ALL fields. More... Example
turnOffPaging void paging at 50/page turn off paging so total rows returns maxes at a value More... Example
turnOffSorting void sorting: on Turns off the ability to sort table by clicking the header titles More... Example
validateDeleteWithFunction a user-defined function to be set user-defined method returns true or false Allows you to set logic allowing if deletion of certain rows is permissible or not More... Example
validateUpdateWithFunction a user-defined function to be set user-defined method returns true or false Allows you to set logic allowing if updating a row is permissible or not More... Example

Variables

Name Requires Type Default Short description Example
actionText variable Action Change the text 'Action' that appears in the table header Example
addButtonText variable Add {Item} Overwrites the text of the Add button More... Example
addButtonToRowWindowOpen variable same When a button is added to row (addButtonToRow) the window in which to open page (ALL buttons). More... Example
addMessage variable {Item} added The message that displays after you add a new item (and you're not using ajax adding) More... Example
addText variable Add The word that displays in the button for adding a new row Example
ajaxcrud_where_clause session_start(); variable Most recent/active sql WHERE clause used by the ajaxcrud table. More... Example
cancelText variable Cancel The word that displays in the button for Cancelling out of an add form (slides the form up) Example
cellspacing variable 0 cellspacing for the html table that displays the database table Example
css variable true set to false if you don't want to use a css stylesheet More...
deleteText variable Delete The word that displays in the button for deleting an existing row Example
doActionOnShowTable variable true when set to true CRUD actions will happen when showTable() is called More... Example
emptyTableMessage variable The message that appears when a table is empty. Example
fileDeleteText variable del Change the word that displays for the link that handles file deletions. Example
fileEditText variable edit Change the word that displays for the link that handles file updates. Example
hover_color variable #B1CFF5 (a light blue) color when you hover over a cell to change its value More... Example
showCheckbox variable false puts a checkbox in front of each row More... Example
New

Non-Commercial Use

If you use ajaxCRUD™ on a website for non-profit/charity use OR for educational purposes, then you do NOT need our permission.

Download and play away! :-)


FREE

Download

For-Profit Organization

Plan to use ajaxCRUD™ on a business/commercial website? You must purchase a license.

What is a single website?

A single website is defined as a single domain name which hosts a collection of web pages which serve a single entity or business. For example www.loudcanvas.com is a single website; ajaxcrud.com is a single website.

Subdomains are allowable under the single commercial website license. Therefore, if you use the subdomain development.xyz.com then you also own/maintain www.xyz.com; we consider the primary domain a single website and the ajaxCRUD software may be installed on any number of its subdomains.

AJAXCRUD - SINGLE DOMAIN COMMERCIAL LICENSE

You are allowed to use this product or part(s) of it on a single web site only, belonging to either you or your client. You have to purchase the same product again if you want to use the same product in connection with another or other projects.


Any analysis of the program, embedded data or license files by any means and by any entity whether human or otherwise and including but without limitation to discover details of internal operation, to reverse engineer, to de-compile object code, or to modify for the purposes of modifying behavior is forbidden.


Any analysis of encoded files by any means and by any entity whether human or otherwise and including but without limitation to discover details of file format or modification for the purposes of modifying behavior or scope of their usage is forbidden.


All imagery and fonts used in this product are an integral part of the product. You can use images and fonts only as a part of the web site you build using this product. You can use imagery and fonts to develop one project only. Any kind of separate usage or distribution is strictly prohibited.


You are authorized to make necessary modifications to this product to fit your purposes in accordance with this license.


The product is property of Tania Alekova. You shall not offer this product or part(s) of it, modified or unmodified, for redistribution or resale of any kind. You shall not sub-license, assign, or transfer this product or part(s) of it to any entity.


THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

What is a commercial use?

If you are NOT an official Charity/Non-Profit organization (or a student or educational facility) then you likely are a commercial/for-profit orgnization.

If your organization makes a profit, you are a for-profit company. A commercial site is one created for a business, for which purpose is generating revenue or cash flow of any type (and that isn't under a non-profit organization). So if you're selling a product, selling advertisement, selling a service, or just marketing a commercial business, your site is commercial. A company website is commercial even if it doesn't sell anything on the site, as it's purpose is to market/promote a commercial company.

$9.95/mo

Buy Now

Enterprise/Unlimited

The Unlimited License permits you or your company to use ajaxCRUD™ on any/all commercial websites you develop now or in the future.

For any questions please contact us..

$499 (one-time)

Buy Now