hmm, but it doesn't if someone just turns their PC off does it?

my point is (extreme as it may sound) there is no 100% way of doing it. If
you're therefore building an application that's relying on saving this data,
then you need to rethink this stage.

if it's not that mission critical then there are quite a few ways you could
do it.

for instance, you could have a Javascript that fires onchange for every
input field.

The script would change the url of an invisible gif somewhere in the page to
the url of a CF page that saves the form fields either in a cookie or in the
db etc (ie an image pipe)

example

<img src="/images/myimage.cfm" name="myImage">
<form name="myform">
<input type="text" name="myinput" value="" onchange="saveData()">

<script>
function saveData() {
        document.myImage.src = '/images/myimage.cfm?data=' +
document.myform.myinput.value;
}
</script>

myimage.cfm would save that input's data to a text input.

> -----Original Message-----
> From: Giles Roadnight [mailto:[EMAIL PROTECTED]]
> Sent: 27 November 2002 15:45
> To: [EMAIL PROTECTED]
> Subject: Re: [ cf-dev ] Closing a window
> 
> 
> Well, I know for a fact that when I try to close my natwest 
> online bankc
> window it asks me if I want to navigate away from the page. if I click
> cancel it does not close. Sma on windows update.
> ----- Original Message -----
> From: "Robertson-Ravo, Neil (RX)" 
> <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, November 27, 2002 3:40 PM
> Subject: RE: [ cf-dev ] Closing a window
> 
> 
> > yep, thought so, I can get it to trigger an event, but the 
> browser still
> > just closes...arse
> >
> > -----Original Message-----
> > From: Rich Wild [mailto:[EMAIL PROTECTED]]
> > Sent: 27 November 2002 15:40
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: [ cf-dev ] Closing a window
> >
> >
> > no definite way. You can't prevent users from killing the browser or
> turning
> > off the client machine etc.
> >
> >
> >
> > > -----Original Message-----
> > > From: Robertson-Ravo, Neil (RX)
> > > [mailto:[EMAIL PROTECTED]]
> > > Sent: 27 November 2002 15:38
> > > To: '[EMAIL PROTECTED]'
> > > Subject: [ cf-dev ] Closing a window
> > >
> > >
> > > Is there anyway to prevent a user from closing a
> > > popup/browser window before
> > > they have saved their form values?  i.e. if the form values
> > > are not blank,
> > > do not close.
> > >
> > > Neil
> > >
> > > --
> > > ** Archive: 
http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > For human help, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to