Exemplo n.º 1
0
 /**
  * Return a rendered version of this form, suitable for ajax post-back.
  * It triggers slightly different behaviour, such as disabling the rewriting of # links
  */
 public function forAjaxTemplate()
 {
     $view = new SSViewer(array($this->getTemplate(), 'Form'));
     return $view->dontRewriteHashlinks()->process($this);
 }
 /**
  * Return a rendered version of this form, suitable for ajax post-back.
  * It triggers slightly different behaviour, such as disabling the rewriting of # links
  */
 public function forAjaxTemplate()
 {
     $view = new SSViewer(array($this->getTemplate(), 'Form'));
     $return = $view->dontRewriteHashlinks()->process($this);
     // Now that we're rendered, clear message
     $this->clearMessage();
     return $return;
 }
Exemplo n.º 3
0
	/**
	 * Return a rendered version of this form, suitable for ajax post-back.
	 * It triggers slightly different behaviour, such as disabling the rewriting of # links
	 */
	function forAjaxTemplate() {
		$view = new SSViewer("Form");
		return $view->dontRewriteHashlinks()->process($this);
	}