public static function submitButton(JsUtils $js, $url, $form, $responseElement, $caption = "Okay") { return new DialogButton($caption, $js->postForm($url, $form, $responseElement) . ";\$( this ).dialog( 'close' );"); }