public function toJS($intDynamicPosition = 0)
    {
        $strReturn = "";

        foreach ($this->__fields as $field) {
            $strReturn .= $field->toJS($this->__dynamic);
        }

        $strReturn .= $this->conditionsToJs($intDynamicPosition);

        return $strReturn;
    }
public function toJS($intDynamicPosition = 0)
    {
        $strReturn = "";

        foreach ($this->__fields as $field) {
            $strReturn .= $field->toJS($this->__dynamic);
        }

        $strReturn .= $this->conditionsToJs($intDynamicPosition);

        return $strReturn;
    }
public function toJS ( $ intDynamicPosition = 0 ) { $ strReturn = "" ; foreach ( $ this -> __fields as $ field ) { $ strReturn .= $ field -> toJS ( $ this -> __dynamic ) ; } $ strReturn .= $ this -> conditionsToJs ( $ intDynamicPosition ) ; return $ strReturn ; }
Generate Javascript code.

See {@link \ValidFormBuilder\Base::toJs() Base::toJs()}

@param integer $intDynamicPosition The dynamic position counter
@return string Generated javascript code
Generate Javascript code .