Re: form posting question

2005-11-22 Thread Kiley Simpson
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

Re: form posting question

2005-11-22 Thread Kiley Simpson
>>>>Try this: > >>>> > >>>> >>>> type="submit" > >>>> name="buttonDelete" > >>>> value="Delete" > >>>> onclick="return confirm('Are you sure?');"> &g

Re: form posting question

2005-11-22 Thread Felipe Fernandes
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

Re: form posting question

2005-11-22 Thread Felipe Fernandes
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

Re: form posting question

2005-11-22 Thread Ken Ferguson
" >>>> value="Delete" >>>> onclick="return confirm('Are you sure?');"> >>>> >>>>I'm not sure if this works with flash forms though. >>>> >>>> >>>> >>>> >>>&

Re: form posting question

2005-11-22 Thread Kiley Simpson
>> value="Delete" > >> onclick="return confirm('Are you sure?');"> > >> > >>I'm not sure if this works with flash forms though. > >> > >> > >> > >>>-Original Message- > >>

Re: form posting question

2005-11-22 Thread Ken Ferguson
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

RE: form posting question

2005-11-22 Thread Kiley Simpson
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

RE: form posting question

2005-11-22 Thread Munson, Jacob
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

Re: form posting question

2005-11-22 Thread Kiley Simpson
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

RE: form posting question

2005-11-22 Thread Munson, Jacob
- > 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

Re: form posting question

2005-11-22 Thread Ken Ferguson
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 >>

RE: form posting question

2005-11-22 Thread Kiley Simpson
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,

RE: form posting question

2005-11-22 Thread Kiley Simpson
t;buttonDeleteValue.value='Delete'" /> > type="hidden" > name="buttonDeleteValue" > value=""> > >And then in your action page check the value of buttonDeleteValue. > > > -Original Message- > > From:

RE: form posting question

2005-11-22 Thread Dave Watts
> 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

RE: form posting question

2005-11-22 Thread Munson, Jacob
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

Re: form posting question

2005-11-22 Thread Larry Lyons
>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 > > > >

form posting question

2005-11-21 Thread Kiley Simpson
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