Hey Rob,
If I understand you, you have a button which closes a pop-up window with a
"self.close()" and you want to runan update before closing?
Try this...
First up, change your button to be a submit not a close, and submit it to a
new template like this...
<!--- new template --->
<CFQUERY etc etc >
update query to make activity enabled here...
</CFQUERY>
<HTML>
<HEAD>
<SCRIPT>
self.close();
</SCRIPT>
</HEAD>
</HTML>
----- Original Message -----
From: "rob" <[EMAIL PROTECTED]>
To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 11, 2004 11:07 AM
Subject: [cfaussie] how can i control the close button on a web browser
> i have teachers collarbrating online however some of them click the
> close button before submitting.
>
> I have got a script going so when the teacher goes to the update form
> the activity becomes disabled in the db so other teachers cant modify
> the same for at once however i am relying on the fact that they hit the
> submit form to ensure the activity becomes active to the next person to
> modify it.
>
> how can i control close button at the top of the browser sooo...
>
> if close button hit
> make activity active
> end if
>
> pleas help!
>
> Robert Shaw
> Online Learning
> [EMAIL PROTECTED]
> MLC School
> Rowley Street
> Burwood 2134
> Phone: 97471266
> Mobile: 0422222515
> Fax: 97453254
>
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
>
> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
> http://www.mxdu.com/ + 24-25 February, 2004
>
>
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004