Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding more documentation for JsHelper::submit(). Closes #681

  • Loading branch information...
commit 0930b5c63cd6debe73b19c42a04f89bf791ccc61 1 parent f152181
Mark Story markstory authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 cake/libs/view/helpers/js.php
10 cake/libs/view/helpers/js.php
View
@@ -365,8 +365,16 @@ function set($one, $two = null) {
* Forms submitting with this method, cannot send files. Files do not transfer over XmlHttpRequest
* and require an iframe or flash.
*
+ * ### Options
+ *
+ * - `url` The url you wish the XHR request to submit to.
+ * - `confirm` A string to use for a confirm() message prior to submitting the request.
+ * - `method` The method you wish the form to send by, defaults to POST
+ * - `buffer` Whether or not you wish the script code to be buffered, defaults to true.
+ * - Also see options for JsHelper::request() and JsHelper::event()
+ *
* @param string $title The display text of the submit button.
- * @param array $options Array of options to use.
+ * @param array $options Array of options to use. See the options for the above mentioned methods.
* @return string Completed submit button.
* @access public
*/
Please sign in to comment.
Something went wrong with that request. Please try again.