Our project uses trinidad components exclusively in our webapp with the
exception of the tomahawk jscookmenu.

We've been trying to implement a javascript solution in our pages to
notify the user if he/she attempts to perform an action when he/she
currently has some data record in 'Edit Mode'.  

We used window.onbeforeunload to show the user a confirmation dialog
conditionally based on a flag we set through another js function.  This
seemed to work whenever a trinidad component was used to initiate the
action with the following steps occurring:
1. User enters edit mode
2. User clicks some other button
3. User sees edit mode confirmation dialog
4. User hits 'Cancel'
5. User resumes editing

But we discovered that if the jscookmenu originated the action that
things didn't' work as expected with the following happening:
1. User enters edit mode
2. User clicks the jscookmenu menu item
3. User sees edit mode confirmation dialog
4. User hits 'Cancel'
5. User resumes editing
6. User hits another button
7. User is navigated to jscookmenu menu item target

I don't understand why Trinidad's javascript responds well to the
onbeforeunload action but the jscookmenu does not.

So I have a few questions,
Is this a problem with jscookmenu and the Trinidad PPR interaction?
Is there a better way to get the behavior we desire?
If what we are doing makes sense, would the easiest solution be to just
modify the jscookmenu javascript to get around this 'bug'?

Nate Perkins
General Dynamics C4 Systems

> This email message is for the sole use of the intended recipient(s)
> and may contain GDC4S
>  confidential or privileged information. Any unauthorized review, use,
> disclosure or distribution
>  is prohibited. If you are not an intended recipient, please contact
> the sender by reply email and
>  destroy all copies of the original message.
> 
> 

Reply via email to