ad_dbclick_check_dml (public, deprecated)
ad_dbclick_check_dml [ -bind bind ] statement_name table_name \
id_column_name generated_id return_url insert_dmlDefined in packages/acs-tcl/tcl/deprecated-procs.tcl
Deprecated. Invoking this procedure generates a warning.
This proc is used for pages using double click protection. table_name is table_name for which we are checking whether the double click occurred. id_column_name is the name of the id table column. generated_id is the generated id, which is supposed to have been generated on the previous page. return_url is url to which this procedure will return redirect in the case of successful insertion in the database. insert_sql is the sql insert statement. if data is ok this procedure will insert data into the database in a double click safe manner and will returnredirect to the page specified by return_url. if database insert fails, this procedure will return a sensible error message to the user.
- Switches:
- -bind (optional)
- Parameters:
- statement_name (required)
- table_name (required)
- id_column_name (required)
- generated_id (required)
- return_url (required)
- insert_dml (required)
- See Also:
- xotcl-request-monitor provides a double-click protection feature that does not rely on the database and is transparent to the developer.
- Testcases:
- No testcase defined.