Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Affordable ASP.NET Hosting Service
  Ads  
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  DNNTree and opera
Previous Previous
 
Next Next
New Post 7/24/2008 11:29 PM
User is offline wansco
12 posts
wansco.com
10th Ranked


DNNTree and opera 

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/26/2008 10:36 PM
User is offline wansco
12 posts
wansco.com
10th Ranked


Re: DNNTree and opera 

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 7:06 AM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: DNNTree and opera 

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 7/31/2008 11:11 PM
User is offline wansco
12 posts
wansco.com
10th Ranked


Re: DNNTree and opera 

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 6:39 AM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: DNNTree and opera 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  DNNTree and opera
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com
Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP