Skip to content

Commit

Permalink
Adding more documentation for JsHelper::submit(). Closes #681
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 8, 2010
1 parent f152181 commit 0930b5c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cake/libs/view/helpers/js.php
Expand Up @@ -365,8 +365,16 @@ function set($one, $two = null) {
* Forms submitting with this method, cannot send files. Files do not transfer over XmlHttpRequest * Forms submitting with this method, cannot send files. Files do not transfer over XmlHttpRequest
* and require an iframe or flash. * 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 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. * @return string Completed submit button.
* @access public * @access public
*/ */
Expand Down

0 comments on commit 0930b5c

Please sign in to comment.