Google Groups Home
Help | Sign in
Confirmação de Ações com $html->submit
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Rogério Oiveira  
View profile
 More options Jul 4, 3:11 pm
From: Rogério Oiveira <rogerio...@gmail.com>
Date: Fri, 4 Jul 2008 12:11:13 -0700 (PDT)
Local: Fri, Jul 4 2008 3:11 pm
Subject: Confirmação de Ações com $html->submit
E ai pessoal gostaria de saber se alguém sabe se utilizando o $html-
>sumit, tem como enviar ao usuário uma mensagem perguntando se deseja

realmente efetuar a gravação, está mernsagem seria numa caixa de texto
confirm do js,

utilizando o $html->link eu consigo porém ele não submet o formulário,
ai num funciona, meu código é este,

<? echo $html-

>link( "Gravar" ,"gravar",array('class'=>"logar" ,'controller' =>

'vendanidentificada', 'action' => 'gravar'),"Deseja mesmo executar a
alteração?",false,false) ;?>

se alguém puder me ajudar posta ia,
valeu abraço.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan Basso  
View profile
 More options Jul 4, 5:40 pm
From: Juan Basso <jrba...@gmail.com>
Date: Fri, 4 Jul 2008 14:40:13 -0700 (PDT)
Local: Fri, Jul 4 2008 5:40 pm
Subject: Re: Confirmação de Ações com $html->submit
Rogério,

Faz assim:
$form->create('Model', array('onsubmit' => 'return
confirm("Mensagem?")'));

O $form->submit mantém normal.

Juan Basso

On 4 jul, 16:11, Rogério Oiveira <rogerio...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google