Re: cfform alert box

2005-10-16 Thread Paul Hastings
dave wrote:
> it works fine (sans the popup of course) when the submit button is used

and what shows up in the form structure when you use the submit command?

>  why not remoting?
>  cause i'm retrieving like 5 records not launching it to the moon ;)~

then perhaps flash format isn't the way to go for this? unless the whole 
form is super complex, i don't see using flash forms for something 
you're not going to do w/remoting.


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221176
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfform alert box

2005-10-16 Thread dave
it works fine (sans the popup of course) when the submit button is used

 why not remoting?
 cause i'm retrieving like 5 records not launching it to the moon ;)~

~Dave the disruptor~
"Some people just don't appreciate how difficult it is to dispense wisdom and 
abuse at the same time." 


From: Paul Hastings <[EMAIL PROTECTED]>
Sent: Sunday, October 16, 2005 12:39 AM
To: CF-Talk 
Subject: Re: cfform alert box 

dave wrote:
> butt now it doesnt delete the record, im thinking i gotta add the
> selectedIndex to the submitform, right now i have tis

and what shows up in the form "structure" when you do submit it via the
submit command?

and why aren't you using remoting for that "black beret wearing" user 
experience?



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221162
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfform alert box

2005-10-15 Thread Paul Hastings
dave wrote:
> butt now it doesnt delete the record, im thinking i gotta add the
> selectedIndex to the submitform, right now i have tis

and what shows up in the form "structure" when you do submit it via the
submit command?

and why aren't you using remoting for that "black beret wearing" user 
experience?

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221146
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfform alert box

2005-10-15 Thread dave
nope i had missed that... thanks

 butt now it doesnt delete the record, im thinking i gotta add the 
selectedIndex to the submitform, right now i have tis

 
 function confirm(evt) {
 if (evt.detail == mx.controls.Alert.OK) {
 _root.submitForm();
 }
 } // confirm

 function doubleCheck(){
 alert("Are you sure you want to remove this record", "Warning",
 mx.controls.Alert.OK | mx.controls.Alert.CANCEL, confirm);
 } // doubleCheck
 

~Dave the disruptor~
"Some people just don't appreciate how difficult it is to dispense wisdom and 
abuse at the same time." 


From: Paul Hastings <[EMAIL PROTECTED]>
Sent: Sunday, October 16, 2005 12:07 AM
To: CF-Talk 
Subject: Re: cfform alert box 

dave wrote:
> bu, the code they have is about the same but it just pops another 
> alert up to say its deleted but of course its not and it still doesnt wait 
> for confirmation before submiting the form, I tried adding submitForm() in 
> place of the 2nd alert box but it still doesnt wait gr

did you follow my example? is the "submit" button just a plain button?



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221145
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfform alert box

2005-10-15 Thread Paul Hastings
dave wrote:
>  bu, the code they have is about the same but it just pops another 
> alert up to say its deleted but of course its not and it still doesnt wait 
> for confirmation before submiting the form, I tried adding submitForm() in 
> place of the 2nd alert box but it still doesnt wait gr

did you follow my example? is the "submit" button just a plain button?

~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221143
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfform alert box

2005-10-15 Thread dave
yeah they do some amazing things there!

 bu, the code they have is about the same but it just pops another 
alert up to say its deleted but of course its not and it still doesnt wait for 
confirmation before submiting the form, I tried adding submitForm() in place of 
the 2nd alert box but it still doesnt wait gr

~Dave the disruptor~
"Some people just don't appreciate how difficult it is to dispense wisdom and 
abuse at the same time." 


From: "Andrew Stevens" <[EMAIL PROTECTED]>
Sent: Saturday, October 15, 2005 6:38 AM
To: CF-Talk 
Subject: RE: cfform alert box 

This unlocked the mystery for me:
http://www.asfusion.com/blog/examples/cfforms/alert.cfm

A truly great site.



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221137
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfform alert box

2005-10-15 Thread Andrew Stevens
This unlocked the mystery for me:
http://www.asfusion.com/blog/examples/cfforms/alert.cfm

A truly great site.



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:22
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfform alert box

2005-10-14 Thread dave
nice catch :)
 MIK
 haha

 now the problem is that the alert pops up but then quickly submits itself 
argg

~Dave the disruptor~
"Some people just don't appreciate how difficult it is to dispense wisdom and 
abuse at the same time." 


From: Paul Hastings <[EMAIL PROTECTED]>
Sent: Saturday, October 15, 2005 1:52 AM
To: CF-Talk 
Subject: Re: cfform alert box 

dave wrote:
> thats close to what i have been trying but I get this eror whenever i add the 
> onclick to the button
> 
> illegal use of actionscript

oops, change the word delete in the message to remove. then complain to 
mike nimer ;-)

> alert("Are you sure you want to delete this record", "Warning", 



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221109
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfform alert box

2005-10-14 Thread Paul Hastings
dave wrote:
> thats close to what i have been trying but I get this eror whenever i add the 
> onclick to the button
> 
>  illegal use of actionscript

oops, change the word delete in the message to remove. then complain to 
mike nimer ;-)

>  alert("Are you sure you want to delete this record", "Warning", 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221108
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfform alert box

2005-10-14 Thread dave
thats close to what i have been trying but I get this eror whenever i add the 
onclick to the button

 illegal use of actionscript

~Dave the disruptor~
"Some people just don't appreciate how difficult it is to dispense wisdom and 
abuse at the same time." 


From: Paul Hastings <[EMAIL PROTECTED]>
Sent: Friday, October 14, 2005 1:11 AM
To: CF-Talk 
Subject: Re: cfform alert box 

> i tried onClick but it doesnt work

not tested but maybe something along these lines? if you're not on 
merrimack, you'll need to wrap the AS up in cfsavecontent.

 function confirm(evt) {
 if (evt.detail == mx.controls.Alert.OK) {
 // do whatever when the event is confirmed like submit or pass thru 
to remoting CFC, etc.
 }
 } // confirm

 function doubleCheck(){
 alert("Are you sure you want to delete this record", "Warning", 
mx.controls.Alert.OK | mx.controls.Alert.CANCEL, confirm);
 } // doubleCheck

onclick="doubleCheck();">



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221107
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfform alert box

2005-10-13 Thread Paul Hastings
>  i tried onClick but it doesnt work

not tested but maybe something along these lines? if you're not on 
merrimack, you'll need to wrap the AS up in cfsavecontent.


function confirm(evt) {
if (evt.detail == mx.controls.Alert.OK) {
// do whatever when the event is confirmed like submit 
or pass thru 
to remoting CFC, etc.
}
} // confirm

function doubleCheck(){
alert("Are you sure you want to delete this record", "Warning", 
mx.controls.Alert.OK | mx.controls.Alert.CANCEL, confirm);
} // doubleCheck





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220993
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfform alert box

2005-10-13 Thread Charlie Griefer
ah sorry.  that i dunno :\

On 10/14/05, dave <[EMAIL PROTECTED]> wrote:
> i would like to have the flex alert box though
>
>  there is this code
>
>   alert("Are you sure you want to delete this record", "Warning",
>  mx.controls.Alert.OK | mx.controls.Alert.CANCEL, confirm);
>
>  but not sure how to add it to the remove button
>  
>
>  i tried onClick but it doesnt work
>
> ~Dave the disruptor~
> "Some people just don't appreciate how difficult it is to dispense wisdom and 
> abuse at the same time."
>
> 
> From: Charlie Griefer <[EMAIL PROTECTED]>
> Sent: Thursday, October 13, 2005 11:50 PM
> To: CF-Talk 
> Subject: Re: cfform alert box
>
> nothing cfform specific, but some straightforward JS should work well 
> enough...
>
> On 10/13/05, dave  wrote:
> > anyone got anything good for a quick alert box for cfform?
> > use would be on a delete submit button to confirm the user wants to delete 
> > the record.
> >
> > thanks
> >
> > ~Dave the disruptor~
> > "Some people just don't appreciate how difficult it is to dispense wisdom 
> > and abuse at the same time."
> >
> >
> >
> >
>
>
>
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220989
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfform alert box

2005-10-13 Thread Mike | NZSolutions Ltd
In your header include


<!--
function GP_popupConfirmMsg(msg) {
  document.MM_returnValue = confirm(msg);
}
//-->


On your form item include



(from dreamweaver)

mike

-Original Message-
From: dave [mailto:[EMAIL PROTECTED] 
Sent: Friday, 14 October 2005 5:04 p.m.
To: CF-Talk
Subject: Re: cfform alert box


i would like to have the flex alert box though

 there is this code

  alert("Are you sure you want to delete this record", "Warning", 
    mx.controls.Alert.OK | mx.controls.Alert.CANCEL, confirm);

 but not sure how to add it to the remove button
 

 i tried onClick but it doesnt work

~Dave the disruptor~
"Some people just don't appreciate how difficult it is to dispense
wisdom and abuse at the same time." 


From: Charlie Griefer <[EMAIL PROTECTED]>
Sent: Thursday, October 13, 2005 11:50 PM
To: CF-Talk 
Subject: Re: cfform alert box 

nothing cfform specific, but some straightforward JS should work well
enough...

On 10/13/05, dave  wrote:
> anyone got anything good for a quick alert box for cfform? use would 
> be on a delete submit button to confirm the user wants to delete the 
> record.
>
> thanks
>
> ~Dave the disruptor~
> "Some people just don't appreciate how difficult it is to dispense 
> wisdom and abuse at the same time."
>
>
>
> 





~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220988
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfform alert box

2005-10-13 Thread dave
i would like to have the flex alert box though

 there is this code

  alert("Are you sure you want to delete this record", "Warning", 
    mx.controls.Alert.OK | mx.controls.Alert.CANCEL, confirm);

 but not sure how to add it to the remove button
 

 i tried onClick but it doesnt work

~Dave the disruptor~
"Some people just don't appreciate how difficult it is to dispense wisdom and 
abuse at the same time." 


From: Charlie Griefer <[EMAIL PROTECTED]>
Sent: Thursday, October 13, 2005 11:50 PM
To: CF-Talk 
Subject: Re: cfform alert box 

nothing cfform specific, but some straightforward JS should work well enough...

On 10/13/05, dave  wrote:
> anyone got anything good for a quick alert box for cfform?
> use would be on a delete submit button to confirm the user wants to delete 
> the record.
>
> thanks
>
> ~Dave the disruptor~
> "Some people just don't appreciate how difficult it is to dispense wisdom and 
> abuse at the same time."
>
>
>
> 



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220987
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: cfform alert box

2005-10-13 Thread Charlie Griefer
nothing cfform specific, but some straightforward JS should work well enough...





On 10/13/05, dave <[EMAIL PROTECTED]> wrote:
> anyone got anything good for a quick alert box for cfform?
>  use would be on a delete submit button to confirm the user wants to delete 
> the record.
>
>  thanks
>
> ~Dave the disruptor~
> "Some people just don't appreciate how difficult it is to dispense wisdom and 
> abuse at the same time."
>
>
>
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220986
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54