[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3824: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3826: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3827: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
Next Framework • Ver Tópico - Ação Submit

Ação Submit

Não deixe de perguntar, solucione aqui suas dúvidas...

Ação Submit

Mensagempor willinos » Seg Set 06, 2010 10:54 pm

Olá Pessoal,
É possivel colocar uma acao javascript personalizada antes do submit de um form?
O caso é o seguinte, tenho um form onde o campo ano letivo deve ser o ano atual para criacao de um novo objeto. Porém, ao editar se o campo nao estiver hidden, ele vai para null. Entao resolvi desabilitar a combo que contem o campo, mas ao fazer submit, este campo nao vai... então tenho que habilita-lo antes do submit.
Alguem pode me ajudar?
willinos
 
Mensagens: 47
Data de registro: Sáb Ago 07, 2010 2:06 pm

Re: Ação Submit

Mensagempor rogelgarcia » Seg Set 06, 2010 11:24 pm

rogelgarcia
Administrador
 
Mensagens: 674
Data de registro: Qua Jul 08, 2009 9:02 am

Re: Ação Submit

Mensagempor willinos » Seg Set 06, 2010 11:33 pm

Não,
Eu estava usando o CRUD mesmo, não tem nenhuma opção?
Como uso meu proprio submit aproveitando o CRUD?

Desde já agradeço.
willinos
 
Mensagens: 47
Data de registro: Sáb Ago 07, 2010 2:06 pm

Re: Ação Submit

Mensagempor rogelgarcia » Ter Set 07, 2010 12:09 pm

No crud vc faz:

<t:janelaEntrada submitConfirmationScript="facaOsTestes()">

Esse atributo irá setar o atributo confirmationScript do submit..

Basta que voce retorne true no seu método para o formulário ser enviado..
rogelgarcia
Administrador
 
Mensagens: 674
Data de registro: Qua Jul 08, 2009 9:02 am


Retornar para Dúvidas

Quem está online

Usuários vendo este fórum: Nenhum usuário registrado online e 2 visitantes

cron