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 ForumsClientAPIClientAPIDNNTree and operaDNNTree and opera
Previous
 
Next
New Post
7/25/2008 1:29 AM
 

I am embedding HTML code in the text of my treenodes. this works fine in IE and Firefox, but in Opera, it partially renders the html as text then trucates everything after the first quote. for example, i'm embedding a hyperlink in node.text and the result in opera is:

<a href=

 

Any thoughts on this would be greatly appreciated.

 
New Post
7/27/2008 12:36 AM
 

Some more notes on this issue:

The nodes that are effected are generated by the PopulateOnDemand ajax call. nodes generated in the normal pageload display correctly.

Safari is also effected by this issue, although it exhibits a slightly different behavior. in both Opera and Safari, dynamically generated nodes that contain html in the nodes Text do not display.

 

 
New Post
7/28/2008 9:06 AM
 

Thanks for the info.  I hadn't tried this scenario before.  It will be fixed in the next release of the controls.

You can track its progress here.

If your desperate to get this to work, I would first recommend trying to simply style the menu via css. However, if this is not possible, then you could selectively on the server side detect opera/safari and do a HttpUtility.HtmlEncode on the text/html for those two browsers only.   


 
New Post
8/1/2008 1:11 AM
 

Thanks Jon,

I did some tracing of the code in firebug and dragonfly (opera's version of firebug). I didnt get very far, but I did find something that may be of interest:

dnn.controls.dnntree.js on line 273:
    var sXml = oTNode.node.getXml();

in firefox, this getXml() function returns an already encoded string:
        "<n txt="&lt;a href=&quot;/Home.aspx?Loc.........

in Opera, this same function returns an unencoded string:
        "<n txt="<a href="/Home.aspx?Loc.........

I suspect the problem lies somewhere in dnn.xml.js and is probably incredibly simple.

 

I'll look into preencoding the text for just those two browsers.

 

thanks again Jon.

P.S. for the next version, it would be nice to fall back to a staticly built tree if javascript is not present (i.e. by using postbacks to expand nodes).

 
New Post
8/1/2008 8:39 AM
 

Regarding the postbacks expanding, this is already possible by simply setting the browser to render downlevel.  It won't support your javascript disabled scenario though, in fact most of ASP.NET won't support it, as it relies on calling the __doPostback javascript funciton to wire up most of the events.


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPIDNNTree and operaDNNTree and opera


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