Hi Matteo,

Feel free to propose patches for this, it'd be a welcomed fix. We currently have a project that uses jquery without any problem, but most likely because it uses the jQuery.noConflict(); function to avoid this.

Maybe a workaround is to selectively load the magnolia scripts in your templates depending if you're in preview mode or not.

Cheers,

-greg

On Dec 17, 2008, at 6:45 PM, Matteo Pelucco wrote:


!!! Unbelievable !!!
The problem is caused by... the REDEFINITION of function $

see: admin-js/generic.js

if (typeof $ != 'function') {
   function $(element)
   {
       return document.getElementById(element);
   }
}

If this script run after an external JS framework, define $ as a simple document.getElementById.

Removed that script, everything works fine!
Is it a bug? A Magnolia limitation?

Anyway, this is the issue...

No idea how to solve without hacking the magnolia-module- admininterface-3.6.3.jar

Matteo





Matteo Pelucco ha scritto:
Matteo Pelucco ha scritto:

Hi all!
I'm going to integrate MooTools Javascript Framework (http://mootools.net ) on my pages.

First integration thing, first trouble.
The problem is there even with jQuery.
Look at this example:
***
http://tinyurl.com/5td6km
***
A simple alert (); binded to MooTools and jQuery dodready events.
Magnolia bars enabled and turned off.
In Firefox 3 everything is fine, not in IE.
M.
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to