ajaxCRUD.com

» a PHP class to create / read / update / delete from a database table using AJAX

   by loud canvas media

AjaxCRUD API Reference

<< Reference overview
<< Home

addButton

adds a button to the bottom of the page
void addButton ( String buttonValue, String URL [, String tags = "" ] )
Use this function when you want to provide easy navigation to another page (for easy processing). It inserts a button at the bottom of the page (right next to the "add item" button.

You can use the optional tags parameter to attach events to a button.

Details

Type function
Returns void

Parameters

Button value
The value of the button (ie the text displaying on the button).
URL
The page to go to (ie .php, html, asp page...).
[optional] tags
javascript tags (eg onClick, onMouseOver, etc)

Example

$tblDemo->addButton("Home", "index.php");

See also

New, Edit

 

"Brilliant. Saved insane amounts of time. `nuff said."
~Soule