Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN 6 Module Popup-Friendly cause postback when close itDNN 6 Module Popup-Friendly cause postback when close it
Previous
 
Next
New Post
8/15/2011 11:08 PM
 
I am just start using the new Module Popup-Friendly for DNN6. But I found it's cause postback when I click the cross button on the top-right hand side to close the popup.

How can I close the Popup without cause postback? Because that' reload the parent page which it's not necessary.

Thanks!
 
New Post
8/16/2011 3:34 AM
 
some of the pop-ups do not force a postback refresh , its only those that can cause a datachange to the underlying page. I believe there is an issue logged to look at this further but the problem is that a popup may allow a user to make a number of updates before closing so to be safe we force a refresh. \if you feel that a particular sequence does not require this then please log it at support.dotnetnuke.com

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/16/2011 6:26 PM
 
O, Already add as issue as DNN-17591.

Thanks!
 
New Post
8/16/2011 8:26 PM
 
The biggest issue that I see with popups - after working with them for some time - is that there is no real concept of STATE management inside the POPUP window.

Seems to me that modules that support popups need a better api that allow them to register STATE changes using something as simple as a DIRTY flag = within the current popup,

The use of popups has been locked down to a point where ONLY modules that "support" popups use the popup system - SO - such modules should be able to be changed to properly support a STATE.

And really it does not need to be complex . . . we already KNOW when we are inside a popup that is going to cause a page refresh
 - the URL of the popup has /*showReturn*/ true  in it for starters.

SO those modules should be able to know how to register their state in a useful way that the popup api could use to determine if the CANCEL button OR  the CLOSE button - show return WITHOUT causing a post back.

Basically - what im suggesting is that when the popup is first opened = something like a javascript coookie is used to hold a STATE value - each popup cycle starts off with a value of DEFAULT - while this value is set the action of the CLOSE button will be to force a REFRESH - as at this point the popup does not know  if the module is compliant with the state system.

Modules that ARE compliant need to register this with the popup - by including a register call that changes to javascript cookie state to = CLEAN.

Once the state is set to CLEAN the popup system can then close the popup without causing a page refresh if the user hits the close button.

Modules that DO support the STATE and have set the CLEAN value - are then responsible for handling the STATE value correctly.
They would do this by changing the STATE value to DIRTY when that module performs any action  demands a page refresh.

Westa
 
New Post
8/16/2011 11:04 PM
 
agreed -i've coded similar logic in non-DotNetNuke projects before and usually hang the check off the relevant onunload/ onbeforeunload events.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesDNN 6 Module Popup-Friendly cause postback when close itDNN 6 Module Popup-Friendly cause postback when close it


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out