Professional Documents
Culture Documents
http://www.ajaxcrud.com/api/
ajaxCRUD.com
a PHP class to create / read / update / delete from a database table using AJAX
by loud canvas media Home Documentation License Examples Download SUPPORT Contact Us
ajaxCRUD
constructor for instantiating the Example class (String buttonText, String dbTableName, String dbPrimaryKey) More...
FUNCTIONS
Name Requires Returns void all fields searchable void void no button Default Short description adds a search box at the top of the page More... adds searchboxs for all fields in your table More... Example
Example Example
adds a button to the bottom of Example the page More... adds a button to every row and sends the id (pk) of that item to any url More...
Example
addOrderBy addTableBorder
orders the table by a specified Example field More... adds a border to the html table Example this function is deprecicated! -- please use setCSSFile to control style/layout
Example Example
append the value of the row to Example the beginning of the filename
More... defineAllowableValues
define "allowable" values for a Example field. More...
1 de 3
AjaxCRUD.com ajaxCRUD API - Use PHP & AJAX to CRUD from ...
http://www.ajaxcrud.com/api/
defineCheckbox defineRelationship
void void
1,0
Example
defines a relationship between Example your table and another (via the foreign key) More... disallow new rows to be added to the table More... disallows row deletion
More...
disallows a field to be edited
More...
displays the a field name in the Example table under a psudoname.
Example
Example
calls a local function when a Example file (that was previously uploaded) is deleted More... calls a local function when a file is uploaded More... 10 sets the size (lengh of the textbox) of an ajax filter box
void
Example Example
setAjaxFilterBoxSize
addAjaxFilterBox or addAjaxFilterBoxAllFields
void
More... setCSSFile
default.css Sets a css file as the stylesheet Example to be used to render the table.
More... setFileUpload
web-safe filename of uploaded file (on upload void void void 50 input box allows a field to accept file uploads More...
Example
set the limit of number of rows Example to display More... Sets the textarea height for a field More...
Example
Set ALL checkboxes for a Example field (in a column) to be on of off. More... function to "run" the script / display the table More... (ajax used for adding a row) Turns off ajax for the CREATE crud operation (adding a row). More...
showTable turnOffAjaxADD
Example Example
turnOffAjaxEditing turnOffPaging
turns off the ability to edit ALL Example fields. More... turn off paging so total rows returns maxes at a value
Example
More...
VARIABLES
Name Requires Type Default Short description Example
2 de 3
AjaxCRUD.com ajaxCRUD API - Use PHP & AJAX to CRUD from ...
http://www.ajaxcrud.com/api/
cellspacing
variable
true
set to false if you don't want to use a css stylesheet More... The message that appears when a table is empty.
Example Example
More... showCheckbox
variable puts a checkbox in front of each row More...
Example
New
"Thanks for the great script, you rock big time." ~Daniel Copyright 2011 Loud Canvas Media. for non-commercial use. | AjaxCRUD is a free, open-source PHP API
3 de 3