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/19/2008 6:34 AM
 

      Recently I developed a  modules based  mootools javasript framework.  The module works fine in Ie browser, but it makes dnn menu disappear in Firefox browser.  It seems the issue is caused by the conflict  between the $ tag in mootools and the function $()  in core dnn.js.   It is annoying because it is hard to modify neither of them. 
      Has anyone success play mootools javascript in dnn?Is there anyway to solve this?Thanks.
    

 


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/19/2008 6:45 AM
 

      I just found another thread which talks the same thing but also lack of ideas: Prototype or Mootools with DNN ClientAPI?  . I should follow that thread instread  of open a new thread if I found earlier.


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/19/2008 10:20 AM
 

I can't offer a solution, but something to search for and see if there is documentation for mootools regarding this.  JQuery has the exact same problem but the creators of JQuery were nice enough to create something called "CompatibilityMode" which basically remaps the $ back to whatever it was before JQuery was instantiated.  When you do that, you call all the JQuery methods using jQuery.blah instead of $.blah

So the question is if mootools has something like that and, if not, are they going to add it?  You could always download jQuery, look at that particular section of js code and duplicate the functionality in your mootools.js file... assuming its that easy.  On the same token, prhaps the DNNClient library has that functionality as well? (of course, everything is coded to use the $ in the DNNClient library).

Good luck and if you find something, I'm sure a lot of people would love to hear the solution.


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
3/19/2008 11:42 AM
 

       Yes.JQuery has a noConflict() function which works well with dnn js. And also the phototype library. I have used both of them before.
        I just search the web follow your suggestion. The result is not optimism. It seems mootools creator  has no intention to make this change. And as they suggested, mootools should not used with other libraries to avoid conflict.
      Thanks for your suggestion. It seems we have to give up mootools or waiting for either mootools or dnn js  can make a little change.

 


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/19/2008 1:08 PM
 

That is unfortunate.  Maybe somebody will go in and make the changes to the mootools library themselves (which breaks upgradeability, unfortunately) but the changes could be documented and re-added each upgrade of mootools... depends how deeply engrained the $ functionality is within their own library.

That other thread you linked to mentioned that Jon used the extend method on the DNNClientLibrary so it wouldn't compete with prototype... it appears mootools has a $extend function as well... might be worth checking with Jon Henning to see if he can give some suggestions how to accomplish the same with mootools.


-- 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