I have jquery and mootols in my custom control

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/6/2010 8:28:13 AM
Gravatar
Total Posts 55

I have jquery and mootols in my custom control

I am using noconflict() function but anyway I get following errors in Error Console:

Error: $ is not a function
Source File: http://domain.com/Admin/PageLayout.aspx?pageid=0
Line: 744

Error: $.element is not a function
Source File: http://gff.gedomain.com/script/mootools-1.2-core.js
Line: 105

Error: $.element is not a function
Source File: http://domain.com/script/mootools-1.2-core.js
Line: 105

 

9/6/2010 9:14:17 AM
Gravatar
Total Posts 55

Re: I have jquery and mootols in my custom control

in layaout.master I have changed $ witch jQuery

jQuery.noConflict();
function HideMenuToolbar() { jQuery("#toolbar").fadeOut(); $("#toolbarbut").fadeIn("slow"); }
function ShowMenuToolbar() { jQuery("#toolbar").fadeIn(); $("#toolbarbut").fadeOut("slow"); }
jQuery(document).ready(function() {
jQuery("span.downarr a").click(function() { HideMenuToolbar(); Set_Cookie('openstate', 'closed') });
jQuery("span.showbar a").click(function() { ShowMenuToolbar(); Set_Cookie('openstate', 'open') });
jQuery("span.downarr a, span.showbar a").click(function() { return false; });
var openState = Get_Cookie('openstate');
if (openState != null) { if (openState == 'closed') { HideMenuToolbar(); } if (openState == 'open') { ShowMenuToolbar(); } }
});
   

it pixed some errors but not all ..

9/7/2010 7:02:10 AM
Gravatar
Total Posts 18439

Re: I have jquery and mootols in my custom control

sorry but jQuery is used throughout mojoPortal and you will break things if you try to set NoConflict

I have no solution for you other than don't use mootools if it conflicts with jQuery. I recommend find a pure jQuery solution instead of trying to use more than one javascript framework

9/11/2010 7:13:58 AM
Gravatar
Total Posts 55

Re: I have jquery and mootols in my custom control

Thank you Joe,

 

I will remove mootools and I will put jquery photo gallery.

 

I use also mojoportal photo gallery and trying to use silverlight and as I guess

it is not showing text about image... or i am not using mojo feature correctly?

 

Thanks

You must sign in to post in the forums. This thread is closed to new posts.