Welcome Guest Search | Active Topics | Sign In | Register

Eo.MsgBox component popups again coming back on the page Options
Jief
Posted: Wednesday, February 29, 2012 5:35:09 AM
Rank: Newbie
Groups: Member

Joined: 1/6/2012
Posts: 8
This bug also occurs on your web site demo page :
- make the msgbox popup
- validate with Ok button
- navigate to another page
- come back to the MsgBox page
You will see the MsgBox popup again.
eo_support
Posted: Wednesday, February 29, 2012 10:36:51 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We tested it and we do not see such problems. Can you let us know which demo page and which browser you were using?

Thanks!
Jief
Posted: Wednesday, February 29, 2012 12:21:47 PM
Rank: Newbie
Groups: Member

Joined: 1/6/2012
Posts: 8
http://demo.essentialobjects.com/Demos/MsgBox/Features/Showing%20Message%20Box%20-%20Server%20Side/Demo.aspx

Steps :
- click "Show Message Box" button
- Click "Ok" or "Cancel" or button in the MsgBox to close it
- Browse to another page
- Come back to the MsgBox page
Jief
Posted: Wednesday, February 29, 2012 12:22:41 PM
Rank: Newbie
Groups: Member

Joined: 1/6/2012
Posts: 8
Oops, by the way : we use IE8.
eo_support
Posted: Wednesday, February 29, 2012 12:49:43 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I believe that's normal. If you refresh the page it should go away. The MessageBox is visible because is is directly rendered as visible by the server side, so when you click back button to return to that page the browsers restores everything it got from the server last time from its cache, thus the MessageBox is visible as it were.

If you want to avoid this problem, you can either disable cache on the page that you use the MessageBox or use client side JavaScript to show the MessageBox. When you use client side script to the MessageBox control, the browser won't show the MessageBox when you go back to the page because it only kept the "static" copy of your page.

As long as you do not use browser back button, it should not be an issue at all. This is what we were previous trying so we were not able to reproduce the problem.

Thanks!
Jief
Posted: Thursday, March 1, 2012 4:53:51 AM
Rank: Newbie
Groups: Member

Joined: 1/6/2012
Posts: 8
Hi,

You wrote :
"
when you click back button to return to that page the browsers restores everything it got from the server last time from its cache, thus the MessageBox is visible as it were.
"
The MsgBox is not visible anymore when you navigate to another page if you follow my steps, because it has been closed with one of its buttons. It is visible again when you go back to the page. If it has been hidden before to leave the page, why would the cache have it visible ? Why does it popup when you go back to the page while it was hidden before to leave it ?

To not use the browser back button, which is a basical navigation feature of the browser, is not what I call a solution... Client side neither is a solution if you need to code the server side event (ButtonClick).

Do you have a solution allowing to use the server side event and the browser back button ?

Thanks for information.
eo_support
Posted: Thursday, March 1, 2012 7:26:46 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Jief wrote:
Do you have a solution allowing to use the server side event and the browser back button ?


No. This is not something you should spend your effort on. This is exactly how browser SHOULD work. In another word, it's the designed goal of a browser. It's not just the message box control, everything else work this way. If you don't want it to work this way, disable the back button by disabling the page cache. You will notice that almost all sites with important information (such as online ordering, banking site, etc) do that.
Jief
Posted: Thursday, March 1, 2012 7:41:21 AM
Rank: Newbie
Groups: Member

Joined: 1/6/2012
Posts: 8
Work around : call the MsgBox Dispose method in the MsgBox ButtonClick event, at the end of eventual other code.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.