Bon733
|
Posted: 09/16/2003, 3:57 PM |
|
I need to confirm that the user pressed Submit before leaving a window if
any changes are made, what's the easiest way to do that?
I tried adding code to the On Unload event of the page but I hit a few bugs
and sent this to support:
=====================================================
I am trying to add code that will prompt a user to save changes when exiting
a window. As a test, I added a Submit Form Action to the "On Unload" event.
When the html is generated I get an invalid expression in the bind_events
function as follows:
if () check_and_bind('document.','onunload',page_OnUnload);
Any ideas?
==============================================
Anybody have any ideas?
|
|
|
Stefan Hogedal
|
Posted: 09/23/2003, 1:32 PM |
|
You should use the onBeforeUnload event!
"Bon733" <bon@nospam.com> skrev i meddelandet
news:bk84fs$f4m$1@news.codecharge.com...
> I need to confirm that the user pressed Submit before leaving a window if
> any changes are made, what's the easiest way to do that?
>
> I tried adding code to the On Unload event of the page but I hit a few
bugs
> and sent this to support:
> =====================================================
> I am trying to add code that will prompt a user to save changes when
exiting
> a window. As a test, I added a Submit Form Action to the "On Unload"
event.
> When the html is generated I get an invalid expression in the bind_events
> function as follows:
>
> if () check_and_bind('document.','onunload',page_OnUnload);
>
> Any ideas?
> ==============================================
>
> Anybody have any ideas?
>
>
>
>
|
|
|
Bon733
|
Posted: 09/23/2003, 1:52 PM |
|
I reinstalled CCS with the latest update and it appears to fix the problem.
"Stefan Hogedal" <xxx_shogedal@hotmail.com> wrote in message
news:bkqal4$o5e$1@news.codecharge.com...
> You should use the onBeforeUnload event!
>
> "Bon733" <bon@nospam.com> skrev i meddelandet
>news:bk84fs$f4m$1@news.codecharge.com...
> > I need to confirm that the user pressed Submit before leaving a window
if
> > any changes are made, what's the easiest way to do that?
> >
> > I tried adding code to the On Unload event of the page but I hit a few
> bugs
> > and sent this to support:
> > =====================================================
> > I am trying to add code that will prompt a user to save changes when
> exiting
> > a window. As a test, I added a Submit Form Action to the "On Unload"
> event.
> > When the html is generated I get an invalid expression in the
bind_events
> > function as follows:
> >
> > if () check_and_bind('document.','onunload',page_OnUnload);
> >
> > Any ideas?
> > ==============================================
> >
> > Anybody have any ideas?
> >
> >
> >
> >
>
>
|
|
|
Bon733
|
Posted: 09/23/2003, 4:48 PM |
|
How do you use the server side Before UnLoad event to show a msgbox prompt?
I tried this and naturally received a permission error. Do you know where
the is an example for this type of request?
|
|
|
|