THAT'S IT!!!
Thank you, thank you. This is fantastic
My action page is very small now
save cfc
delete cfc
create cfc
As you pointed out, Delete is bad so I used okDelete. Your solution is
perfect. I can't thank you enough. This has been blowing my mind for too
lo
>>>>Try this:
> >>>>
> >>>> >>>> type="submit"
> >>>> name="buttonDelete"
> >>>> value="Delete"
> >>>> onclick="return confirm('Are you sure?');">
&g
kiley jus be carefull to do not use the word 'Delete' in place of
'Del' because it will throw an error of illegal actionscript use. Here
it goes:
var myform = myform
var teste = teste
var confirm = function (evt)
{
if (evt.detail == mx.controls.Alert.OK)
{
myform.action = 'Del'
_root.sub
7;Are you sure?');">
> >>
> >>I'm not sure if this works with flash forms though.
> >>
> >>
> >>
> >>>-Original Message-
> >>>From: Kiley Simpson [mailto:[EMAIL PROTECTED]
> >>>Sent: Tuesda
"
>>>> value="Delete"
>>>> onclick="return confirm('Are you sure?');">
>>>>
>>>>I'm not sure if this works with flash forms though.
>>>>
>>>>
>>>>
>>>>
>>>&
>> value="Delete"
> >> onclick="return confirm('Are you sure?');">
> >>
> >>I'm not sure if this works with flash forms though.
> >>
> >>
> >>
> >>>-Original Message-
> >>
uot;
>> value="Delete"
>> onclick="return confirm('Are you sure?');">
>>
>>I'm not sure if this works with flash forms though.
>>
>>
>>
>>>-Original Message-
>>>From: Kiley Simpson [mailto:[E
Simpson [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, November 22, 2005 11:57 AM
> > To: CF-Talk
> > Subject: Re: form posting question
> >
> > nope.
> >
> > but i ultimately need to have 2 buttons, one a Save the other
> > Delete. I
> > want the Delet
Try this:
I'm not sure if this works with flash forms though.
> -Original Message-
> From: Kiley Simpson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 22, 2005 11:57 AM
> To: CF-Talk
> Subject: Re: form posting question
>
> nope.
>
> but i u
nope.
but i ultimately need to have 2 buttons, one a Save the other Delete. I
want the Delete to pop a warning to the user. The onClick of the Delete has
a #showAlert# call but if the button is of type Submit, the form posts
regardless if the user responds to the alert.
I am hacking my through
-
> From: Ken Ferguson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 22, 2005 11:08 AM
> To: CF-Talk
> Subject: Re: form posting question
>
> Why are you checking the value for the buttonDelete form
> element in the
> first place??? Surely you're not using m
Why are you checking the value for the buttonDelete form element in the
first place??? Surely you're not using more than one button with that
same name are you?
>>I tried , and my buttonDelete input field didn't
>>exist in the struct
>>
ug, that's bad news.
I think I will have to abandon cfforms format="flash". Warning before a
delete is such a common thing to do I can't really tell my customer to,
"just be careful".
I wish macromedia would address this very common and, should be, simple
operation.
At 09:27 AM 11/22/2005,
t;buttonDeleteValue.value='Delete'" />
> type="hidden"
> name="buttonDeleteValue"
> value="">
>
>And then in your action page check the value of buttonDeleteValue.
>
> > -Original Message-
> > From:
> I tried , and my buttonDelete input field didn't
> exist in the struct.
The value for an INPUT with TYPE="button" is not passed to the action page.
This INPUT type is really just intended as a place from which you can attach
JavaScript event handlers.
Dave Watts, CTO, Fig Leaf Software
http://w
rom: Kiley Simpson [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 21, 2005 8:10 PM
> To: CF-Talk
> Subject: form posting question
>
> Evening,
>
> I have to submit a cfform with an input type of "button", not
> submit. The
> cfform has a button which will
>Evening,
>
>I have to submit a cfform with an input type of "button", not submit. The
>cfform has a button which will delete the record displayed but I needed to
>put a warning alert up.
>
>Anyhow, I need to be able to tell the value of the button, the same thing as:
>
>
>
>cfc call here
>
>
>
>
Evening,
I have to submit a cfform with an input type of "button", not submit. The
cfform has a button which will delete the record displayed but I needed to
put a warning alert up.
Anyhow, I need to be able to tell the value of the button, the same thing as:
cfc call here
but, using an i
18 matches
Mail list logo