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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to avoid conflict between mootools library with dnn javsscript library?How to avoid conflict between mootools library with dnn javsscript library?
Previous
 
Next
New Post
3/20/2008 10:21 AM
 

      Yes. We are considering to modify mootools library. Maybe we can add a "Moo" namespace prefix to all methonds and properties so the conflict can be removed.
      It will be a hard work(and another issue is the upgradeability, like you said).  Wish we can find another easy way.


Over 20 + professional dnn modules for News Article, Store, Video Gallery, Photo Gallery, Ultra Flash Player,YouTube Video, Image Slide show, Skin Chameleon and much more from DnnModule.com
 
New Post
3/21/2008 11:42 AM
 

        We made it out finally. Below is my experience and I like to share.

        (1)Modify mootools library, add a root name space. For example ,we add a Moo name space to all mootools object(functions,etc),you can visit http://www.dnnmodules.cn/FreeDownload/tabid/11857/Default.aspx to download it if interest.
        (2)Modify all javascript code related to mootools ,for example, if your code is 
             var album = new Class();  then change it as var album=new Moo.Class();  Note you need change all your code.
     
      Ok. now your script has no conflict with dnn library. It should work now.

      And there is another important point,  many functions in MooTools library require your document has a XHTML DTD(especially functions in window  class ). Without it will cause  weird result in Ie browser.

      Dnn does provider a way to let skin designer to specify their  favorite XHTML DTD.   Simply add a skinname.doctype.xml which contains XHTML DTD with skin file, Dnn will automatic apply it. For example , if your skin file is BuleBusiness.ascx ,then you need provide a BuleBusiness.doctype.xml with it. 
     Although dnn providers this way, I have not seen anyone use this before.    So , I think XHTML DTD can be added like below.
     (1)Open default.aspx, manually add  XHTML DTD  above the <html> tag. for example
      before :<asp:literal id="skinDocType" runat="server"></asp:literal>
<html>
      after:<!DOCTYPE html
                            PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'
                            'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> 
                   <asp:literal id="skinDocType" runat="server"></asp:literal>
               <html>
       (2) Dynamic add XHTMl DTD in your module.
       The first way can work but it needs modify dnn file , and it will affect  your whole site. So in our module ,we choose the second way.


Over 20 + professional dnn modules for News Article, Store, Video Gallery, Photo Gallery, Ultra Flash Player,YouTube Video, Image Slide show, Skin Chameleon and much more from DnnModule.com
 
New Post
3/21/2008 12:28 PM
 

This is great!  Thanks for posting up the solution!  Maybe I'll start looking into mootools now.


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to avoid conflict between mootools library with dnn javsscript library?How to avoid conflict between mootools library with dnn javsscript library?


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