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...Open Core Testi...Open Core Testi...DNN6 and partial renderingDNN6 and partial rendering
Previous
 
Next
New Post
11/8/2012 2:35 PM
 
I can confirm I see this error as well.
 
New Post
11/8/2012 4:24 PM
 

If you run the following javascript on the page you will enable partial rendering for all of the modules that support it.

$("div[id$='View_UP']").each(function() {
        if (!($(this).parent().attr('id').indexOf("View_UPPanel") >= 0)) {
            var prefix = $(this).attr("id").replace("View_UP", "");
            $(this).wrap("<div id='" + prefix + prefix + "View_UPPanel' />");
        }
    });

At least, it worked for me.

As I evaluated the DOM I noticed that only the module that wrapped the div with the id of "*View_UP" in a div with an id of "*View_UPPanel" actually worked correctly.  This script makes sure that all of the "*View_UP" panels are wrapped.

 
New Post
11/21/2012 8:47 AM
 
Hi Dave,Unfortunately your code does not work for me.The JavaScript wraps the modules in an additional div, but still the last module on the page supports partial rendering.When do you execute the JavaScript code? On DomReady-Event or do you add this as inline javascript code in your module or skin?
 
New Post
11/21/2012 9:01 AM
 

Sorry, I've been meaning to post and update to this for a few days now.  Here's the new(er) code.

    // because the separator could be an underscore or a dollar sign (or who knows what else)
    var viewUpId = $("div[id$='View_UPPanel']").attr("id");
    viewUpId = viewUpId.replace("View_UPPanel", "");
    var token = viewUpId.charAt(viewUpId.length - 1);
    // correct partial postback bug in dnn.
    $("div[id$='View_UP']").each(function () {
        if (!($(this).parent().attr('id').indexOf("View_UPPanel") >= 0)) {
            var prefix = $(this).attr("id").replace("View_UP", "");
            $(this).wrap("<div id='" + prefix + prefix.replace(/_/g, token) + "View_UPPanel' />");
        }
    });

The problem, as noted in the comment, is that on my dev machine they were using an underscore and on the stage computer they were using a dollar sign to separate the concatenation. The above code detects which they are using and then applies that code similar to what I provided before.

This is all part of
$(function ($) {
   // code goes here.
});

and does not need to be added to
Sys.WebForms.PageRequestManager.getInstance().add_endRequest

 since the part of the DOM we are modifying will never change due to partial rendering.

 
New Post
11/21/2012 11:35 PM
 
Thanks Dave, the new code is working fine :)I will also post your update in the bug report (http://support.dotnetnuke.com/issue/ViewIssue.aspx?ID=17524&PROJID=2)
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...DNN6 and partial renderingDNN6 and partial rendering


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