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

HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Localization with the help of javascript (problem FF)Localization with the help of javascript (problem FF)
Previous
 
Next
New Post
2/21/2008 10:34 AM
 

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
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Localization with the help of javascript (problem FF)Localization with the help of javascript (problem FF)


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