Microsoft Content Management Server - Catch the EXIT event when in Edit mode

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > April 2004 > Catch the EXIT event when in Edit mode





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Catch the EXIT event when in Edit mode
bLUE

2004-04-28, 6:34 am

Hi..

heres the situation: I have created a custom control that allows users
to edit, add articles using an interface I have created. The controls
data is stored as XML. When a user makes edits/add's, all of the data
is stored as XML in a statebag (session variable), and when SAVE is
clicked, the session variable is set to the datastore of the custom
control, and the session variable is set to nothing.

Now, If a user starts to make edits/additions and then hits CANCEL,
the session vaiable still exists - because I cant catch the EXIT
event. So if the user comes back to edit mode, the session variable
still exists.. and this will cause problems..

Any ideas on how to catch the exit event when in editing mode (without
creating a custom console).. or any other ways around my problem?

Any suggestions will be appreciated.
Lasse F. Pedersen

2004-04-28, 10:35 am

You could use a hidden form field as container for your XML data.

I am doing this in a custom control for adding/editing/removing
links/resources client-side (no post-back). A hidden form field is the
container for my XML data, which is handled by the MSXML.DOMDocument ActiveX
object in a client-side javascript.

Hope it helps,

Lasse

"bLUE" <iambluestar@hotmail.com> wrote in message
news:387d7d58.0404280224.6470d272@posting.google.com...
> Hi..
>
> heres the situation: I have created a custom control that allows users
> to edit, add articles using an interface I have created. The controls
> data is stored as XML. When a user makes edits/add's, all of the data
> is stored as XML in a statebag (session variable), and when SAVE is
> clicked, the session variable is set to the datastore of the custom
> control, and the session variable is set to nothing.
>
> Now, If a user starts to make edits/additions and then hits CANCEL,
> the session vaiable still exists - because I cant catch the EXIT
> event. So if the user comes back to edit mode, the session variable
> still exists.. and this will cause problems..
>
> Any ideas on how to catch the exit event when in editing mode (without
> creating a custom console).. or any other ways around my problem?
>
> Any suggestions will be appreciated.



bLUE

2004-04-29, 4:34 am

Yes I could do it all client side, but I have been using the POST
BACK. If I could catch the exit event, then all will be good. This
only seems possible if I customise the console :/

Thanks for the idea.. !


"Lasse F. Pedersen" <lassefpedersen@REMaas.FOOnja.BARdk> wrote in message news:<#aFA84SLEHA.1644@TK2MSFTNGP09.phx.gbl>...
> You could use a hidden form field as container for your XML data.
>
> I am doing this in a custom control for adding/editing/removing
> links/resources client-side (no post-back). A hidden form field is the
> container for my XML data, which is handled by the MSXML.DOMDocument ActiveX
> object in a client-side javascript.
>
> Hope it helps,
>
> Lasse

[vbcol=seagreen]
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com