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
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Localize It! (L...  Localization with the help of javascript (problem FF)
Previous Previous
 
Next Next
New Post 2/21/2008 6:34 AM
Unresolved
User is offline Daniel Steinmann
26 posts
www.dsis.ch
10th Ranked


Localization with the help of javascript (problem FF) 

I'm based in Switzerland and here multi-language is a key for successfull websites. Since 2 years I'm working with DNN and slowly I begin to really understand.

Basically I'm using the apollo-software modules to enhance the multi-langauge capabilities of DNN. For the last multi-language site I had to realize, I searched an easy approach to use core modules like documents. I found one with a following javascript in a customized skin for the related website:

<script type="text/javascript">
/*
var mylang = document.getElementsByTagName("html")[0].lang;
 if(document.getElementById("dnn_ctr396_ContentPane")){
  var contentDE = document.getElementById("dnn_ctr396_ContentPane");
}
 if(document.getElementById("dnn_ctr398_ContentPane")){
  var contentFR = document.getElementById("dnn_ctr398_ContentPane");
}
if (mylang == "fr-CH") {
 if(document.all) {
  contentDE.parentElement.parentElement.parentElement.innerText = "<tr><td></td></tr>";
 }
 else{
 contentDE.style.display = "none";
 contentDE.parentElement.style.display = "none";
 contentDE.parentElement.parentElement.style.display = "none";
 contentDE.parentElement.parentElement.parentElement.style.display = "none";
 }
}
else{
 if(document.all) {
  contentFR.parentElement.parentElement.parentElement.innerText = "<tr><td></td></tr>";
 }
else{
  contentFR.style.display = "none";
  contentFR.parentElement.style.display = "none";
  contentFR.parentElement.parentElement.style.display = "none";
  contentFR.parentElement.parentElement.parentElement.style.display = "none";
}
}
*/
</script>

In this sample I work with 2 document modules on the same site, one for the german the other one for the french content. With the javascript I hide the inactive document module. In IE it's working fine, but in FF I've no action, I tried different way's but no one is working.

Does somebody know what I'm doing wrong?

You can see it live at: http://www.sakret.ch/Home/Datenblätter/tabid/56/language/de-CH/Default.aspx

Thank you

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Localize It! (L...  Localization with the help of javascript (problem FF)
 


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.

 


Bring2mind
Document Centric DNN Module Solutions
www.bring2mind.net
WEBPC™ DotNetNuke® sites for Small Business
WEBPC™ are internet consultants and web hosters catering to the small business market.
www.webpc.biz
Perpetual Motion Interactive Systems Inc.
A solutions company specializing in Microsoft enterprise technologies.
www.perpetualmotion.ca

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