Learn More





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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, to get the ID of a Pane in J Query show hide functionhow to get the ID of a Pane in J Query show hide function
New Post
8/31/2017 9:28 AM

Hi, I am trying to set up a toggle event so users to a page will initially see a masonry style list of attractions,  but with the option of clicking an icon to replace it with a google map view. 
I thought this would be simple (and it was when manually testing in an html modules). 

Anyway,  I have 2 full width panes in my skin with id's of div_Grid and div_Map , both with a class of targetDiv that my JQuery uses to reference them onclick,  now this is obviously where the old master page syndrome kicks in and the ids are changed. 

Up to now nothing I have tried has worked so does anyone know how to reference Pane ID's in a function or  how to set up an alert box that shows  pane names at run time or  tell me how to find out what they are.

New Post
8/31/2017 11:01 AM
Hi Stuart,

DNN prepends 'dnn_' to content panes. So, your new IDs would be 'dnn_div_Grid' and 'dnn_div_Map'.

Hope this helps.

Ralph Williams, Jr.
UX Designer / Front-End Web Developer
Ralph Williams Consulting

Professional DNN7: Open Source .NET CMS Platform
New Post
8/31/2017 11:23 AM

Thanks Ralph, I tried that already but no difference?.

I am in that "too close to spot things mode" so In case anyone sees a flaw I post the code . The code below works when in an html module. I have tried playing with the selectors and as Ralph pointed out using dnn_div_Grid and _div_Grid etc

Panes in skin.

<div class="wsc_pane FullWidePane targetDiv" id="div_Grid" runat="server"></div>
<div class="wsc_pane FullWidePane targetDiv" id="div_Map" runat="server"></div>


<a class="showSingle" target="_Grid" data-placement="left" data-rel="tooltip" data-original-title="Show Grid Only"><i class="fa fa-th fa-2x" aria-hidden="true"></i></a>

<a class="showSingle" target="_Map" data-placement="left" data-rel="tooltip" data-original-title="Show Map Only"><i class="fa fa-map-marker fa-2x" aria-hidden="true"></i></a>

<a class="showall" target="_List" data-placement="left" data-rel="tooltip" data-original-title="Show All"><i class="fa fa-refresh fa-2x" aria-hidden="true"></i></a>


$(document).ready(function () {

 jQuery('.showall').click(function () {



        jQuery('.showSingle').click(function () {


            jQuery('#div' + $(this).attr('target')).show();


            jQuery('#div' + $(this).attr('_Map')).hide();


New Post
8/31/2017 3:28 PM

Ok, I was able to effect  a workaround by surrounding the Panes with ordinary divs (no runat = server) and I can now toggle my panes fine,  but of course I have now ran into a further complication. 

Because the maps parent div is hidden with CSS  (display:none;) the googlemap which is a custom module and database driven will not display.. So if anyone has any tips that might work?????

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, to get the ID of a Pane in J Query show hide functionhow to get the ID of a Pane in J Query show hide function

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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out