<![CDATA[ quickedit/mootools-jquery conflict - My Forums]]> https://forums.modx.com/thread/?thread=43440 <![CDATA[Re: quickedit/mootools-jquery conflict]]> https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250369 Quote from: jQueryNinja at Aug 17, 2009, 12:28 PM

Quote from: garryn at Feb 13, 2009, 06:07 PM

...
And then, in your jQuery code, replace any references to $() with jQuery(). ...
Actually there is more elegant and easier way to use $ without overwriting all you $()’s to jQuery(). You need to put your javascript code in closure like it’s explained in this post about jQuery.noConflict():

function($){
  // here comes the code that uses $
}(jQuery);


i now this post is old i have no new information’s but i try jQuery in NO CONFLICT mode in second method...
jQuery(document).ready(function($){
    $("div").hide();
});

and work beautiful!

10x jQueryNinja]]>
lastoftheromans Sep 08, 2009, 12:38 AM https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250369
<![CDATA[Re: quickedit/mootools-jquery conflict]]> https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250368 Quote from: garryn at Feb 13, 2009, 06:07 PM

...
And then, in your jQuery code, replace any references to $() with jQuery(). ...
Actually there is more elegant and easier way to use $ without overwriting all you $()’s to jQuery(). You need to put your javascript code in closure like it’s explained in this post about jQuery.noConflict():

function($){
  // here comes the code that uses $
}(jQuery);
]]>
jQueryNinja Aug 17, 2009, 07:28 AM https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250368
<![CDATA[Re: quickedit/mootools-jquery conflict]]> https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250367
Thanx for the fix! grin

Jer]]>
J3R Aug 06, 2009, 09:53 AM https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250367
<![CDATA[Re: quickedit/mootools-jquery conflict]]> https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250366
I am not really sure on how to do this? I tried to change the code but nothing happened, hence I think I placed the things at the wrong place. My <head> ist loading jquery and interface.js like that:

<head>
<title>[(site_name)] - [*pagetitle*]</title>
<meta http-equiv="Content-type" content="text/html; charset=[(modx_charset)]" />
<meta name="keywords" content="[*Schlagworte*]" />
<!-- add your meta tags here -->

<link href="[(base_url)]assets/templates/alext/css/alext.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 7]>
<link href="[(base_url)]assets/templates/alext/css/patches/alext_patches.css" rel="stylesheet" type="text/css" />
<style type="text/css">
 div, img { behavior: url(assets/templates/alext/css/patches/iepngfix.htc) }
 </style>
<![endif]-->
<script type="text/javascript" src="[(base_url)]assets/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="[(base_url)]assets/js/interface.js"></script>
</head>


Then in the beginning of the <body> there is the actual javascript for the menu.

<script type="text/javascript">
	
	$(document).ready(
		function()
		{
			$('#dock').Fisheye(
				{
					maxWidth: 50,
					items: 'a',
					itemsText: 'span',
					container: '.dock-container',
					itemWidth: 40,
					proximity: 90,
					halign : 'center'
				}
			)
		}
	);

</script>


So my first try was like that: I added the jQuery.noConflict at the body-js code before the first $... came into play. Then I changed both of the $ into jQuery. I reloaded the page - nothing changed. Then I opened the interface.js and put the noConflict ontop. Again nothing changed. As well I played around a bit with the options of the QM-Plugin that is to say I changed the point when to load QM and tried reloading. Well nothing happened. smiley I now have undone every changes and started to ask you guys as I am some kind of a N00b to js. It’d be nice if someone can tell me how I get both QM and css dock menu (the fisheye thing) up and running.

Kind regards in advance for any hints.

Alexander]]>
Sajonara Aug 03, 2009, 08:46 PM https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250366
<![CDATA[Re: quickedit/mootools-jquery conflict]]> https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250365 ]]> whodaman Jun 28, 2009, 07:19 AM https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250365 <![CDATA[Re: quickedit/mootools-jquery conflict]]> https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250364 grabovacb Feb 13, 2009, 11:19 PM https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250364 <![CDATA[Re: quickedit/mootools-jquery conflict]]> https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250363
The viewing public will not be aware of the issue...]]>
Photowebmax Feb 13, 2009, 01:46 PM https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250363
<![CDATA[Re: quickedit/mootools-jquery conflict]]> https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250362
To use the noConflict mode, place this in your JS code before you call any of the jQuery functions:
jQuery.noConflict();


And then, in your jQuery code, replace any references to $() with jQuery(). More information here: http://docs.jquery.com/Core/jQuery.noConflict]]>
garryn Feb 13, 2009, 12:07 PM https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250362
<![CDATA[quickedit/mootools-jquery conflict]]> https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250361 So, i need to import jquery lib, wich i have done, and it works just fine as long as im not signed in in the back end. If i am signed in jq isnt loaded due to mootools being loaded with qe. I dont want to disable/delete quickedit. Ive read that there is some kind of quick fix for this problem. Any help will be greatly appreciated.]]> grabovacb Feb 13, 2009, 11:53 AM https://forums.modx.com/thread/43440/quickedit-mootools-jquery-conflict#dis-post-250361