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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPISkinning and MaxMinningSkinning and MaxMinning
Previous
 
Next
New Post
9/12/2006 4:05 AM
 

Do the MinMax ClientAPI functions provide any way to "hook in", so I can extend their behavior?

I have a skin with a really nice container frame.  However, since the frame completely surrounds the module on all 4 sides, even when it's minimized it doesn't completely close up.  My thought was to hook into the MinMax functions (I'd rather not create replacement functions, unless it's absolutely necessary), so I can use DHTML to switch the container into a really compact format when it's minimized.

Is this possible?  Is there an easier way than what I had in mind?  Any online examples?

Thanks,
Erik J Sawyer

 
New Post
9/12/2006 4:11 PM
 

The short answer is no, not really.  The long answer is yes, with a lot of restrictions...

In essence the clientAPI allows you to easily hook into any element's events.  For simplicity sake, lets say that you know the ID of the container you wish to add an event for (in this case assume cmdVisibility_1).

Assuming you wrote some server side code to hook into the page's onload event handler you could call your own function.  (this is done with the DNNClientAPI.AddBodyOnloadEventHandler function).

function myonload()
{
   var o = $('cmdVisibility_1'); //HARDCODED
   dnn.dom.attachEvent(o, 'onclick', minmaxhandler);
}

function minmaxhandler()
{
  alert(dnn.dom.event.srcElement.id);
}

Like I said, this is an oversimplification.  First problem is that by default the expand/collapse uses animation for its logic, therefore your method will be called prior to the element being completely minimized.  Animation can be turned off by specifying in your container's skin AnimationFrames=0.  Note:  the logic to do the animation and have a callback is supported by the ClientAPI, it is not supported by the DNN core at this time.

If I were in your shoes, I'd simply create a new visibility skin object and use it in your container's design.  Sorry I don't have time to put one together for you to demonstrate this.


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPISkinning and MaxMinningSkinning and MaxMinning


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