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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module needs to Fire Event for Custom Skin Object to CommunicateModule needs to Fire Event for Custom Skin Object to Communicate
Previous
 
Next
New Post
11/13/2007 8:51 PM
 

I have a Custom Skin Object which displays the summary of a shopping cart (number of items, value) as part of a skin layout.

I need custom modules on various shopping pages to fire an event that the Custom Skin Object can detect  which will allow it to refresh the cart summary when the cart is modified (new product added to cart, changes made in the View Cart for quantities or deletions, etc).  The prototype worked fine when the Custom Skin Object was just a normal module on the shopping pages using IMC and the OnModuleCommunication and IModuleListener interface.  Now that the prototype module has been moved into the skin as a Custom Skin Object, the IMC event no longer fires.  I gather that skins do not support the IMC interface. 

That said, then how can I establish a communication interface between a module on a page and a Custom Skin Object in a skin?

 
New Post
11/14/2007 7:21 AM
 

Yep skin objects dont support IMC as such.

But in reality you should not need it - why not just setup a session variable that your modules set when they make a change.

The skin object can read the session variable and reset it when it finishes its processing.

A bit like a semaphore etc.

Westa

 
New Post
11/14/2007 5:51 PM
 

That won't work due to the code execution flow.  The skin object is near the top of the page and is processed and rendered before the click event is processed for the update cart/delete items from cart buttons. 

That's why you need to fire an event that the skin object can detect and re-render the cart summary once the cart has been modified in the button click event.

 
New Post
11/15/2007 6:37 AM
 

If all your module work is done in the PAGE_INIT / PAGE_LOAD phase ...

Then you can PUT your SKIN code in the PRE_RENDER event
 - which should not fire until after ALL the PAGE_LOAD level events on the page have been trigger.

Westa

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Module needs to Fire Event for Custom Skin Object to CommunicateModule needs to Fire Event for Custom Skin Object to Communicate


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